[magick-users] how to avoid quantize()
Anthony Thyssen
A.Thyssen at griffith.edu.au
Thu Nov 12 18:42:56 PST 2009
On Thu, 12 Nov 2009 17:46:05 +0800
ZHOU Xiao-bo <zhxb.ustc at gmail.com> 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 ) <A.Thyssen at griffith.edu.au>
--------------------------------------------------------------------------
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/
More information about the Magick-users
mailing list