Re: Change Image Color
Posted: 2009-11-10T11:06:23-07:00
so far i seem to have been able to convert a eps to png and retain transparency (full transparency only) while keeping all colors correct by using
convert -channel rgba -colorspace rgb -background none myeps.eps mypng.png
if you convert a eps to a txt the color white shows as
79,0: ( 0, 0, 0, 0) #0000000000000000 black
while black is something like
78,0: ( 0, 0, 0,34952) #0000000000008888 black
it seems the when the switch is made from cmyk to rgba it gets confused on the colors. this also seems to work with pdf files. so far i have no issues
using IM-6.5.7-Q16 and GS8.70
convert -channel rgba -colorspace rgb -background none myeps.eps mypng.png
if you convert a eps to a txt the color white shows as
79,0: ( 0, 0, 0, 0) #0000000000000000 black
while black is something like
78,0: ( 0, 0, 0,34952) #0000000000008888 black
it seems the when the switch is made from cmyk to rgba it gets confused on the colors. this also seems to work with pdf files. so far i have no issues
using IM-6.5.7-Q16 and GS8.70