fmw42 wrote:No, when I look at the verbose info, I see
tiff:alpha: unassociated
Drarakel wrote:but identify shows it as "unassociated", even when it's "associated"
Use ExifTool - or an older IM version - to identify that correctly.
fmw42 wrote:I created it in PS with only background transparency, not an alpha layer.
But your PS obviously stored it with an alpha layer.
I will try to convince you once more:
Code: Select all
convert test1.tif -crop 10x1+86+86 +repage txt:-
# ImageMagick pixel enumeration: 10,1,255,rgba
0,0: (162,144,134,255) #A29086 rgba(162,144,134,1)
1,0: (164,139,131,255) #A48B83 rgba(164,139,131,1)
2,0: (168,152,150,255) #A89896 rgba(168,152,150,1)
3,0: (169,152,142,255) #A9988E rgba(169,152,142,1)
4,0: (166,147,136,255) #A69388 rgba(166,147,136,1)
5,0: (156,129,122,255) #9C817A rgba(156,129,122,1)
6,0: (144,120,111,255) #90786F rgba(144,120,111,1)
7,0: (136,111,105,255) #886F69 rgba(136,111,105,1)
8,0: (142,118,113,255) #8E7671 rgba(142,118,113,1)
9,0: (142,122,103,255) #8E7A67 rgba(142,122,103,1)
Hex values in 'test1.tif' at offset 0x1DF7E:
Code: Select all
A2 90 86 FF A4 8B 83 FF A8 98 96 FF A9 98 8E FF A6 93 88 FF 9C 81 7A FF 90 78 6F FF 88 6F 69 FF 8E 76 71 FF 8E 7A 67 FF
(By the way: I now think that there is a difference in the handling of the alpha layer in IM - depending on the value "associated" or "unassociated". With "associated" alpha, the values of the 'normal' channels are usually stored with premultiplied alpha, so IM has to convert the pixel values to get the values without alpha - with small rounding errors. And when changing it in IM from "unassociated" to "associated" - or vice versa - the values in the 'normal' channels get converted, too. Well, all this doesn't make a difference if there's only binary transparency.
)
There are probably several possibilities for transparency that can't get used in ImageMagick. There could be several separate alpha layers (IM supports only the first alpha layer - doesn't it?). Or there can be additional data in proprietary tags - like ImageSourceData. I have TIF files where the ImageSourceData is bigger than the image itself. (Can't do anything with that additional data - as I don't have Photoshop.)