Page 1 of 1

Weird bug compressing with pallet

Posted: 2017-07-12T23:31:44-07:00
by QpgDev
I've use ImageMagick to convert/compress 100k images and haven't seen this before.

>> What is unique with this image?

>> Is there something else I need to support transparency in the pallet?
--
Here's the original logo (png): (1.84 KB)
Image
--
Here's what happens when I compress with -pallet: (699 bytes)
Image
magick.exe 179588.png -colors 256 -quality 90 -depth 8 -define png:compression-level=9 -define png:compression-filter=0 -define png:compression-strategy=0 -type palette -strip 179588_compressed_with_pallet.png
--
Here's what happens when I compress without -pallet: (2.08 KB)
Image
magick.exe 179588.png -colors 256 -quality 90 -depth 8 -define png:compression-level=9 -define png:compression-filter=0 -define png:compression-strategy=0 -strip 179588_No_Pallet.png
===========
More information:
  • "-type pallet" seems to be what causes all the problems.
  • PhotoShop can read the file and the problem still occurs when I resave from PhotoShop.
  • The image does have a transparent background.
  • TinyPng compresses it correctly with no loss.

Re: Weird bug compressing with pallet

Posted: 2017-07-13T04:09:18-07:00
by snibgo
You say:
QpgDev wrote:"-type pallet" seems to be what causes all the problems.
What problem? That transparency (alpha) isn't saved? The "palette" type doesn't save alpha.

But "-type PaletteAlpha" does.