When exporting an XMI from Enterprise Architect, it is possible to export all Diagrams as images in a dedicated folder.
The option ea2md.publisher.diagramImageHyperlinks
in the publisher.properties controls creation of Hyperlinks linking MagicDraw Diagrams to their Enterprise Architect Diagram Image in a MagicDraw AttachedFile.
If you want to export using the Publish dialog box, select "Generate Diagram Images", with format "PNG". The folder images needs to be in the same folder of the generated xmi for the publication.
If you Publish the model using the Active Application and the option ea2md.publisher.diagramImageHyperlinks
is set to true, diagrams images will be automatically generated.
Set to following option in publisher.properties file:
# If True, Hyperlinks will be created on Diagrams to a MagicDraw AttachedFile containing the Enterprise Architect Diagram PNG files. Available values: True, False - default: False
ea2md.publisher.diagramImageHyperlinks=True