I am using the IM version 7.0.8-24 on CentOS6.9
I wanted to extrakt a photoshop layer from a TIF file (with transparacy).
My TIF file contains 2 layers (if you look at it in photoshop).
The bottom layer is with a red background color, and the second layer is an image of a shoe (with transparency).
Both layers is visible in the file.
I want to extract just the second layer (and keep the original image size and transparency).
This gets me the result I am looking for:
Code: Select all
magick "/path/to/my/testfile.tif" \( -clone 0 -alpha transparent -channel rgba -evaluate set 0 \) -delete 0,1 -background none -compose src-over -layers merge "/path/to/my/testfile.tif"
BUT, here is the problem:
This new tif file I have created, if I open it in photoshopCC it looks just fine.
But If I try to use the file for layout purposes and place it into a InDesign CC document, the file displays with a black background where It should display transparency.
If I open the TIF file and resave it in photoshop, then it works just fine again.
Hmmm.... So my imagemagick code is not flawless for keeping the TIF format. It's like some technical info is missing from the file when using imagemagick since I can't display the transparency from the file in an Adobe program.
(I actually made this code before, but there I tried to convert the output to an PNG = that works just fine using the IM code and I can use the PNG file for layout purposes just fine!)
Anyone got any ideas how to improve this coding so IndesignCC displays the transparency from my (layered) TIF file?
I tried to layout it with Word, Powerpoint, but there it looks correct thou.
Here is the TIF file I am testing from:download it form here