Inkscape convert indexed image to 24bits (PNG)

Post questions on how to use or achieve an effect in Inkscape.
trialforce
Posts: 2
Joined: Tue Feb 21, 2012 11:07 am

Inkscape convert indexed image to 24bits (PNG)

Postby trialforce » Fri Feb 24, 2012 1:27 am

Hi!

When I add a indexed png image (256 colors ) to Inkscape it converts the image to 24 bits image.

To be sure, I make a little test, I get the original image, aplply base64 linux tool, open the xml in kate (text editor) and change the image using base64 generated content.

In this way inkscape keep the original 256 colors image in SVG file.

Is there any way to add a embebbed indexed without auto conversion from inkscape?

I think a gonna make a plugin, because I need it.

Something like that in code must do the job:

a = open("indexed_image.png", "rb").read().encode("base64")

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Inkscape convert indexed image to 24bits (PNG)

Postby microUgly » Sat Feb 25, 2012 6:45 pm

I expect Inkscape won't change the file externally link to it (rather than embed). Although that may not suit your needs.


Return to “Help with using Inkscape”