GNOME Bugzilla – Bug 304693
Embedded Images
Last modified: 2010-08-15 20:53:01 UTC
Basically I am requested that the images that are placed within dia, be it jpegs, png, bmp, etc., be embedded into the Dia document and not Linked to a file on a hard drive or network drive. This will allow for better sharing of documents between users and the documents will not be displayed with "Broken Images". Other information:
I thought this might be a duplicate and someone must have filed it already but it is not. Marking as New. This is more difficult/messy than it sounds (aren't they always) At the moment the Dia file format is really only a flat text file, which is sometimes gzipped. Embedding the images would require either base64 encoding them and including them inside the text file (abiword does this, okay for small images but grossly ineffecient) or creating a container file like a tar or jar file to hold the other files (openoffice uses a jar/zip container file) I dont see why this would be win32 specific so I have moved it to the general component. Marking as enhancement If you can provide code to help make this happen it would be very much appreciated, otherwise it might not happen.
Putting it in as base64 would grow it by 33%, which is hardly grossly ineffectient. It should of course be optional.
Why not making a tarball containing dia xml and other embedded files?
The company that I work for is utilizing DIA for our process flow diagrams, and then we are uploading them to our off-site document control system. If we would upload a tar, png, or anything other than a dia diagram file we would loose the functionality to update the flowchart from our document control system. By including the image within the code of the diagram, this would allow us to upload the .dia file and not loose the image. This is the issue that our facility faces. If we where just saving the .dia files to our internal network, this would be fine but we are not. Hopefully this helps! Thanks!
*** Bug 387285 has been marked as a duplicate of this bug. ***
Finally implemented: http://git.gnome.org/browse/dia/commit/?id=bb2f22834201775ee7c88dc778fe2360170e97c7