Converting .png to .xpm with transparency and RGB colorspace
Posted: 2013-04-07T23:55:35-07:00
Hi,
I need to convert a .png image to .xpm containing a RGB colorspace and keeping the transparency information of the .png image. The problem is the resulting .xpm file always contains only a blackwhite colorspace. But I need a RGB colorspace in the resulting .xpm file.
I am using ImageMagick 6.7.7-10 (ubuntu 12.10). The code I use to convert the image is:
convert -background none Contours.png Contours.xpm
I also tried to force the number of colors (-colors 256) and the colorspace (-colorspace RGB) without success.
I hope someone can help me with this problem,
Thanks.
I need to convert a .png image to .xpm containing a RGB colorspace and keeping the transparency information of the .png image. The problem is the resulting .xpm file always contains only a blackwhite colorspace. But I need a RGB colorspace in the resulting .xpm file.
I am using ImageMagick 6.7.7-10 (ubuntu 12.10). The code I use to convert the image is:
convert -background none Contours.png Contours.xpm
I also tried to force the number of colors (-colors 256) and the colorspace (-colorspace RGB) without success.
I hope someone can help me with this problem,
Thanks.