Re: Embedding an image in a diagram?



Visio just Base64 encodes the file and inserts it into the XML. No reason Dia couldn't do this too, particularly for small images, but it would be an incompatible change.

I'm in favour though - holding the images by reference is a real pain, and it's not what people expect.

On Fri, 2006-12-15 at 16:46 +0000, Nick Moore wrote:
The only possible way would be to embed the image in the file format (á la Open Office - try changing an odt file into a zip file and opening it - odts are just zip files containing XML and images). However, that would require a re-write of the file handling mechanisms, so I hope Ian's suggestion would work.

Nick Moore

On 12/15/06, Ian Redfern <Ian Redfern logicacmg com> wrote:
If you put the image in your local directory and then insert it as just file.jpeg, say, without any path, then the image filename in the .dia file also gets stored without any path, and should be usable cross-platform.

I don't know any other way of making embedded images in Dia portable between machines, let alone between OSes.

On Fri, 2006-12-15 at 13:39 +0100, christian ridderstrom gmail com wrote:
Is there a way to embed an image in a diagram?

I know about the image object, but that uses a path to an external image.
Since I would like the diagram to be correct on both a windows and a linux 
system, I obviously get into problems with the path then.

So, is there a way that I can embed the image?

Alternatively, it might work if it was possible to specify alternative 
paths to the inserted image. Then if the first path doesn't work, the 
second path will be used.

Should I file any of the above in bugzilla?

cheers
/Christian




This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]