Palette PNG to 24-bit PNG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
holzon
Posts: 2
Joined: 2018-10-23T00:06:01-07:00
Authentication code: 1152

Palette PNG to 24-bit PNG

Post by holzon » 2018-10-23T01:24:15-07:00

Hi!
We have some problems using Palette (color-mapped) PNGs so I tried to automatically convert RGB 8-bit palette PNG to 3-channel 8-bit per channel PNG (TrueColor) with ImageMagick 7.0.8-12 Q16 x64 on Windows, but failing to do so:

magick.exe convert image-palette.png png24:image-truecolor.png

This still writes a palette-type PNG if I check with identify -verbose!

It reproduces here with this image:
Image


Does anyone know how to do this conversion? Is it a bug?

snibgo
Posts: 11910
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Palette PNG to 24-bit PNG

Post by snibgo » 2018-10-23T05:43:59-07:00

Identify reads the image, then tells you how it is stored in memory.

As you want to know how it is stored in the file, use exiftool.
snibgo's IM pages: im.snibgo.com

holzon
Posts: 2
Joined: 2018-10-23T00:06:01-07:00
Authentication code: 1152

Re: Palette PNG to 24-bit PNG

Post by holzon » 2018-10-23T23:09:17-07:00

snibgo wrote:
2018-10-23T05:43:59-07:00
Identify reads the image, then tells you how it is stored in memory.

As you want to know how it is stored in the file, use exiftool.
Aaaaaah, no wonder I was confused. Exiftool worked like a charm, thanks for the tip!

Post Reply