potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

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.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

Post by fmw42 »

I am having a problem creating a two layer tif image from two png files with Imagemagick. I do not think this is a new problem, but an ongoing one. When I open the file in Photoshop CS (granted very old), I only see one layer. But I can separate the layers in Imagemagick. If I open the two images in PS, I can create a new tif image with 2 layers and both layers show in PS when I reopen it after saving it.

For example I have one image that was created as a blurred version of logo: and another that was made so the white was transparent. (But the problem does not matter if the images are transparent or not)

Input:
Image
Image

In IM 6.9.7.6 Q16 Mac OSX:

Code: Select all

convert logob5.png logot.png logo_im.tif
http://www.fmwconcepts.com/misc_tests/i ... ogo_im.tif

Which can be separated into 2 png files:

Code: Select all

convert logo_im.tif logo_im_%d.png
Image
Image

If I create a two layer tif in PS using the same image, I get

http://www.fmwconcepts.com/misc_tests/i ... ogo_ps.tif


Screen shots show the issue:

IM TIFF in PS:
Image

PS TIFF in PS:
Image
Image
Image
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

Post by snibgo »

Fred's file http://www.fmwconcepts.com/misc_tests/i ... ogo_im.tif can be viewed in Microsoft Windows Photo Viewer, both images. [strike]But Gimp 2.8.10 can't open it:[/strike]
Gimp wrote:Opening 'f:\web\im\c:pictures\logo_im.tiff' failed: TIFF image plug-In could not open image
If I do this in IM 6.9.5-3:

Code: Select all

convert -verbose c:pictures\logo_im.tiff t.tiff
... then Gimp can open t.tiff, and I get both images.

So this seems to be an IM bug, introduced between 6.9.5-3 and 6.9.7-6.

EDIT: Gimp can open Fred's file. See my posting below.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

Post by fmw42 »

In light of snibgo's comments, I find that I can open the im created tiff in both Mac Preview and GraphicConvert and see both layers.

It seems strange that PS does not show both layers and so I suspect some PS attribute may not be set properly by IM.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

Post by fmw42 »

snibgo wrote:But Gimp 2.8.10 can't open it:
It opens fine in my GIMP 2.8.10 on my Mac and shows 2 layers
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

Post by fmw42 »

Does anyone have a newer version of Photoshop than my old CS? If so, can you open my IM created tif file and let us know if it shows 2 layers or only 1 layer.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

Post by snibgo »

Ahh, sorry, I got it wrong. My Gimp 2.8.10 can open the file.

The problem was in the way I called Gimp, which created a mal-formed filename, shown in the error message I pasted: "f:\web\im\c:pictures\logo_im.tiff".
snibgo's IM pages: im.snibgo.com
Post Reply