Code: Select all
convert -remap cmap.gif input.png output.gifCode: Select all
convert -remap cmap.gif input.png output.gifThat then is an issue back to Glennrp as he is the PNG guru.holistone wrote:Converting to a png palette image with -remap and -define png:preserve-colormap gives the same result as converting to gif. The output colormap/palette DOES contain all of the colors from the remap specified input, but it alters the order.
holistone wrote:Thanks for the quick responses. Experimentally the order of the input file and first option make no difference to the output. The +dither makes no difference, possibly since my input images contain only colors that are already in the palette. In fact, if I give as input a .gif image that already has the desired colormap (identical to that of cmap.gif) the color indices are still changed in the output. I suspect my expectation that applying a specific colormap/palette to an image would be an easy task for IM was unfounded (or perhaps my definition of "applying" is simply more restrictive).
Users browsing this forum: Amazon [Bot] and 66 guests