[Ipe-discuss] Include bitmap in ipe XML file

zetah otrov at hush.ai
Thu Apr 4 13:54:39 CEST 2013

>The contents of the <bitmap> or <image> element must be the actual pixel 
>data (not a PNG file contents).  Assuming a color image, you need to 
>dump the pixel values, starting at the top left, going row by row, until 
>the bottom right.
>You don't need to compress or base64-encode, just dump the values in 
>hexadecimal (so six hexadecimal digits are one RRGGBB pixel).  You can 
>include spaces or new-lines, they are ignored.
><bitmap id="1" width="10" height="10" ColorSpace="DeviceRGB" BitsPerComponent="8">

Thank. This makes more sense then encoding file contents, as later ipe would need to decrypt bitmap file format...
Works as expected now :)

>This syntax is for Ipe 7, but I'm pretty sure it did not change between 
>Ipe 6 and Ipe 7.  Definitely the main point was the same: don't set a 
>filter, and include the image contents in hexadecimal (Base-64 encoding 
>was added in Ipe 7.0.5).
>And of course Ipe 6 is really outdated now - it got obsolete in 2009... 
>  Is there any reason why you don't move to Ipe 7?

I took a task (assigned from myself :)) to find acceptable method in practice for closing dense contours with gaps. It took me some time to find working solution (some features of Voronoi vertices and constraint Delaunay triangulation - Amenta crust algorithm) and obvious ready made tools like CGAL. It turned out that CGAL operators can be used as ipelets so I have powerful GUI interface to CGAL! It's such a pleasure, I can't state it... However although I have Ubuntu PC around, I mostly work on Windows and I found ready made ipelets for Ipe 6, then I found Ipe 6 binary archived by archive.org and that's it. Works for me :)


More information about the Ipe-discuss mailing list