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.
originalTif.tif contains an alpha channel that removes the visibility of two shoes. Your command makes those shoes white. If you want them to be visible, turn alpha off:
The image has 3 "extra samples" per pixel, all of which are labeled as containing "unspecified" data (i.e. not necessarily alpha samples). As far as I can tell, if a TIFF image has one or more extra samples, ImageMagick 6.x always guesses that one of them (I'm not sure which one) is an alpha channel, and ignores the others. Maybe that works out well most of the time, but it seems like a slightly weird thing to do when there is more than one extra sample.
actually the -alpha off arg works as expected! We were trying to get the image to be resized and look as it does in Photoshop. Since those extra samples are "hidden" when you open the image in Photoshop - turning them off when running the image through convert worked. Greatly appreciate the help.
Unfortunately, if the image had real transparent portions (as opposed to a hidden alpha channel), turning off alpha would not be an option if you want to preserve transparency.
Hmm... is this discussion only about tiff images? My problem has to do with resizing PSD images with extra hidden alpha channels. In that case, I'm thinking that tiff:alpha=XXX won't work - from inspecting the code, pretty sure it won't. Is it okay if I provide an example of a PSD that manifests this problem?
brooksrichardbrown wrote:Hmm... is this discussion only about tiff images? My problem has to do with resizing PSD images with extra hidden alpha channels. In that case, I'm thinking that tiff:alpha=XXX won't work - from inspecting the code, pretty sure it won't. Is it okay if I provide an example of a PSD that manifests this problem?
I started a topic here a couple weeks ago, but I haven't heard anything, so I was searching for similar issues that others have reported. I provided a sample and a patch that I believe will help, at least in the case where the user is processing the merged layer. <url>https://www.imagemagick.org/discourse-s ... 30827</url>.