possible bug -grayscale saving to tif IM 6.8.5.10 Q16 Mac OS
Posted: 2013-06-15T11:30:09-07:00
I am not sure, but this seems like a bug to me. I was expecting to get gamma=0.4545 from all the following as rec601luma is the non-linear version (as opposed to rec601luminance being the linear version).
Why do I get gamma=1 for tif and jpg and not gamma=0.4545 as per the gif and png
convert logo: -grayscale rec601luma 1tmp1.tif
Image: 1tmp1.tif
Class: DirectClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
convert logo: -grayscale rec601luma 1tmp1.jpg
Image: 1tmp1.jpg
Class: PseudoClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
convert logo: -grayscale rec601luma 1tmp1.png
Image: 1tmp1.png
Class: PseudoClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: srgb
Rendering intent: Perceptual
Gamma: 0.45455
convert logo: -grayscale rec601luma 1tmp1.gif
Image: 1tmp1.gif
Class: PseudoClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: srgb
Rendering intent: Perceptual
Gamma: 0.454545
Furthermore, I cannot seem to convert it to gamma=0.4545 for tif or jpg
convert logo: -grayscale rec601luma -colorspace sRGB 2tmp1.tif
Image: 2tmp1.tif
Class: DirectClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
convert logo: -grayscale rec601luma -set colorspace sRGB 3tmp1.tif
Image: 3tmp1.tif
Class: DirectClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
Is this a bug or a limitation of jpg and tif formats not keeping track of gamma? Is so why default it to 1 rather than 0.4545?
P.S. It is also a problem with -monochrome, which I would expect to have gamma=0.4545 since it only contains black and white (bilevel) which are non-linear colors.
Why do I get gamma=1 for tif and jpg and not gamma=0.4545 as per the gif and png
convert logo: -grayscale rec601luma 1tmp1.tif
Image: 1tmp1.tif
Class: DirectClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
convert logo: -grayscale rec601luma 1tmp1.jpg
Image: 1tmp1.jpg
Class: PseudoClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
convert logo: -grayscale rec601luma 1tmp1.png
Image: 1tmp1.png
Class: PseudoClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: srgb
Rendering intent: Perceptual
Gamma: 0.45455
convert logo: -grayscale rec601luma 1tmp1.gif
Image: 1tmp1.gif
Class: PseudoClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: srgb
Rendering intent: Perceptual
Gamma: 0.454545
Furthermore, I cannot seem to convert it to gamma=0.4545 for tif or jpg
convert logo: -grayscale rec601luma -colorspace sRGB 2tmp1.tif
Image: 2tmp1.tif
Class: DirectClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
convert logo: -grayscale rec601luma -set colorspace sRGB 3tmp1.tif
Image: 3tmp1.tif
Class: DirectClass
Colorspace: Gray
Type: Grayscale
Depth: 8-bit
Alpha: False
Channels: gray
Rendering intent: Undefined
Gamma: 1
Is this a bug or a limitation of jpg and tif formats not keeping track of gamma? Is so why default it to 1 rather than 0.4545?
P.S. It is also a problem with -monochrome, which I would expect to have gamma=0.4545 since it only contains black and white (bilevel) which are non-linear colors.