Re: how to avoid quantize()

Anthony Thyssen <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20091113124256.1a6a0bc4@wraith>
On Thu, 12 Nov 2009 17:46:05 +0800
ZHOU Xiao-bo <[email protected]> wrote:

| hi all:
| 
|      When I resized( actually shrinked it) a GIF using C++ interface, I got
| an output much larger than the original.
| I noticed that the output image's platte is 256, and I think it's the
| reason.(I am sure I compiled tiff with lzw.)
| 
|      So I must first use 'sample' to resize and then 'quantizeColors' and
| 'quantize' to reduce the colors to get a smaller
| output. But 'quantize' introduces a much longer time.
| 
|      How can I resize a GIF and avoid using 'quantize' to get an output
| image with the original platte?
| thanks a lot.
| 
Use sample so you don't generate colors when resizing.

Of course the quality is really bad, because you are not creating new
colors!




  Anthony Thyssen ( System Programmer )    <[email protected]>
 --------------------------------------------------------------------------
   All these theories, diverse as they are, have two things in common.
   They explain all the observed facts and they are complete and utterly
                  WRONG.        -- Terry Pratchet, "The Light Fantastic"
 --------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.