magick++ xpm const char** to png

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
supervhs
Posts: 4
Joined: 2010-10-25T00:31:34-07:00
Authentication code: 8675308

magick++ xpm const char** to png

Post by supervhs »

Hi,

Today I have xpm’s inside the code. I want to get rid of this.
I was hoping imagemagick could help me. I want to dynamically iterate over the icon data, and save it to database in png format.

Unfortunately imagemagick’s parser expects the whole xpm file content.

Can I in any way get it to accept the xpm data directly, where I give the const char** data pointer containing the defined char array?


I cannot just use the filepath, because I have some domain knowledge available together with the xpm.
Post Reply