Page 1 of 1

potential bug creating layered tiff IM 6.9.7.7 Q16 Mac OSX

Posted: 2017-02-11T17:09:38-07:00
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

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

Posted: 2017-02-11T18:59:00-07:00
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.

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

Posted: 2017-02-11T20:12:27-07:00
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.

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

Posted: 2017-02-11T20:35:04-07:00
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

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

Posted: 2017-02-11T20:38:54-07:00
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.

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

Posted: 2017-02-11T20:50:28-07:00
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".