+map improvement

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
denizen

+map improvement

Post by denizen »

Will be the +map key improved to support global color maps of 128,64,32.. colors?

Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: +map improvement

Post by fmw42 »

I don't believe that +map is what you want. See +remap

http://www.imagemagick.org/script/comma ... .php#remap
denizen

Re: +map improvement

Post by denizen »

I will appreciate if new IM do follow script in one command

convert speed.gif \
\( -clone 0--1 -background none +append \
-quantize transparent -colors 63 -unique-colors \
-write mpr:cmap +delete \) \
-map mpr:cmap speed_cmap.gif

I only want to make global color pallette with less than 256 colors.

Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: +map improvement

Post by anthony »

Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
denizen

Re: +map improvement

Post by denizen »

"One way to generate this single color table is to simply "-append" all the frames together, then using the "-colors" command to reduce the number of colors to a minimal set (less than 256, or smaller if you want an even smaller color table). The resulting color table can then be applied to the original image using "-map"."

I appreciate if all this algorithm will be implemented for example

+map 64
or
+map 128

This means global color map for gif animation with 64 or 128 colors correspondingly.

Thanks
Post Reply