Converting PSD to TIFF and preserving layers

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Switcharoo
Posts: 1
Joined: 2018-08-30T10:47:30-07:00
Authentication code: 1152

Converting PSD to TIFF and preserving layers

Post by Switcharoo »

Hello,

Is there any way to preserve layers when converting from PSD to TIFF?

Using this command the layers are flattened:

Code: Select all

Convert Input.psd Output.tiff
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting PSD to TIFF and preserving layers

Post by fmw42 »

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli

______


Best if you post your PSD file to some free hosting service that won't change the format and put the URL here.

If we assume you actually have more than one layer, then your command should convert from layered PSD to multi-paged TIFF. Imagemagick does not support layered TIFFs at this time as far as I know.

For example:

identify test.psd
test.psd[0] PSD 1600x1600 1600x1600+0+0 8-bit sRGB 12.2404MiB 0.000u 0:00.000
test.psd[1] PSD 785x1603 785x1603+407+0 8-bit sRGB 12.2404MiB 0.000u 0:00.000
test.psd[2] PSD 1600x1600 1600x1600+0+0 8-bit sRGB 12.2404MiB 0.000u 0:00.000
test.psd[3] PSD 698x1359 698x1359+451+137 8-bit sRGB 12.2404MiB 0.000u 0:00.000
test.psd[4] PSD 698x1358 698x1358+451+138 8-bit sRGB 12.2404MiB 0.000u 0:00.000
test.psd[5] PSD 666x1343 666x1343+467+148 8-bit sRGB 12.2404MiB 0.000u 0:00.000
test.psd[6] PSD 698x1358 698x1358+451+138 8-bit sRGB 12.2404MiB 0.000u 0:00.000
test.psd[7] PSD 666x1343 666x1343+467+148 8-bit sRGB 12.2404MiB 0.000u 0:00.000

convert test.psd test.tif

identify test.tif
test.tif[0] TIFF 1600x1600 1600x1600+0+0 8-bit sRGB 28.9295MiB 0.020u 0:00.009
test.tif[1] TIFF 785x1603 785x1603+407+0 8-bit sRGB 28.9295MiB 0.000u 0:00.000
test.tif[2] TIFF 1600x1600 1600x1600+0+0 8-bit sRGB 28.9295MiB 0.000u 0:00.000
test.tif[3] TIFF 698x1359 698x1359+451+137 8-bit sRGB 28.9295MiB 0.000u 0:00.000
test.tif[4] TIFF 698x1358 698x1358+451+138 8-bit sRGB 28.9295MiB 0.000u 0:00.000
test.tif[5] TIFF 666x1343 666x1343+467+148 8-bit sRGB 28.9295MiB 0.000u 0:00.000
test.tif[6] TIFF 698x1358 698x1358+451+138 8-bit sRGB 28.9295MiB 0.000u 0:00.000
test.tif[7] TIFF 666x1343 666x1343+467+148 8-bit sRGB 28.9295MiB 0.000u 0:00.000
Post Reply