Read a grayscale png.

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
wizard29
Posts: 58
Joined: 2014-03-21T00:40:16-07:00
Authentication code: 6789
Location: Russia, Saint Petersburg
Contact:

Re: Read a grayscale png.

Post by wizard29 »

But conversion to the srgb.icm works incorrect.
"convert.exe grayscale.png -profile srgb.icm grayscale1.png"
grayscale1.png is totally white.

"convert.exe grayscale.jpg -profile srgb.icm grayscale1.png"
grayscale1.png is expected result.
wizard29
Posts: 58
Joined: 2014-03-21T00:40:16-07:00
Authentication code: 6789
Location: Russia, Saint Petersburg
Contact:

Re: Read a grayscale png.

Post by wizard29 »

O, sorry I am wrong. The "convert.exe grayscale.png -profile sRGB.icc grayscale1.png" gives the wrong result as well.
wizard29
Posts: 58
Joined: 2014-03-21T00:40:16-07:00
Authentication code: 6789
Location: Russia, Saint Petersburg
Contact:

Re: Read a grayscale png.

Post by wizard29 »

I don't understand. Why is the same case in the IM "6,9,0,7" works as expected?
wizard29
Posts: 58
Joined: 2014-03-21T00:40:16-07:00
Authentication code: 6789
Location: Russia, Saint Petersburg
Contact:

Re: Read a grayscale png.

Post by wizard29 »

How do I workaround this behaviour?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Read a grayscale png.

Post by fmw42 »

Grayscale image were treated as linear in some versions of IM. Upgrade to the current version and see if that fixes your issue. see, viewtopic.php?f=4&t=21269
albertisi
Posts: 15
Joined: 2014-07-28T12:17:08-07:00
Authentication code: 6789

Re: Read a grayscale png.

Post by albertisi »

How is the bit depth on that grayscale.png ?
Before and after conversion ?
Post Reply