Hello,

On Fri, 11 Sep 2009, J.P. Larocque wrote:
> pngcrush corrupts image content when you call it with "-bit_depth 8":
> the color is distorted and the image is stretched, as if there was a
> serious color conversion error.

The program currently does not do "colour counting" which is necessary
to convert from greater depth to lower depth. Thus what is happening
is that the image is being truncated and stretched horizontally along
with a "graying" of the colours.

Basically, pngcrush is not really for general operations on png files
--- it is mainly to reduce the sizes. The man page should be clearer
about this limitation.

Meanwhile, the best way to convert from bit depth 16 to bit depth 8
is to use imagmagick's convert followed by pngcrush:
 $ convert -depth 8 example-dot-uncrushed-16.png example-dot-uncrushed-8.png
 $ pngcrush example-dot-uncrushed-8.png example-dot-8.png

Regards,

Kapil.
--




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to