[Mono-list] Convert TIFFs to PNGs

Jonathan Gilbert 2a5gjx302@sneakemail.com
Thu, 10 Mar 2005 20:11:32 -0500


At 08:42 PM 10/03/2005 -0300, Fabian Luque wrote:
>Hi people:
>
>I've been doing some tests for a webapp I'm developing. What I'm
>trying to do is convert some B&W (1 bit) TIFFs to PNGs, to view them
>on a browser.
[snip]
>... And it seems it always save 32 bits PNGs.

This is a known issue, and one that I have actually made a patch for. The
patch is still in review, but if it passes, it should soon be committed to
SVN. The current SVN code for bitmaps always converts them up to 32 bits
when loading them; my patch adds native support for palettized Bitmaps,
including LockBits/UnlockBits support. Later tonight I will be adding
palettized save support to the GIF codec, and when that is done, it will be
essentially the final draft of the patch :-)

Look forward to being able to work with palettized images soon.

Jonathan Gilbert