Merge/Convert multiple TIFF's into flate multichannel PSD

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
retrorecover
Posts: 6
Joined: 2018-07-27T04:19:34-07:00
Authentication code: 1152
Location: Portugal

Merge/Convert multiple TIFF's into flate multichannel PSD

Post by retrorecover »

Hi there,

I'm web developer and I need find away to Merge/Convert multiple TIFF's into flate multichannel PSD.
I Know how to do it using Photoshop also automaticly using photoshop actions but the ideia run this in background.
Php > MSDOS command was the gold.

I use already the ImageMagick to convert simple things, never use the complex level and the question is:

Some one knows if the ImageMagick is able to this? Thank you.

Kind regards,
Fernando Oliveira
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by fmw42 »

ImageMagick cannot currently create multichannel TIFFs with more than RGBA or CMYKA channels. It does not support extra channels, yet.
retrorecover
Posts: 6
Joined: 2018-07-27T04:19:34-07:00
Authentication code: 1152
Location: Portugal

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by retrorecover »

Hi fmw42,

Thank you very much for your response.
So do you mean the ImageMagick for now does not support pantones or anothers types of extra layers.
Anyway it will be great if can you please let me Know the syntax to merge/convert 4 CMYK tiffs into a flate multichannel PSD

Kind regards,
Fernando Oliveira
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by fmw42 »

That is correct. Currently, ImageMagick does not support pantone colors/channels nor spot colors.

I am not sure what you mean by "flate" PSD. I have never heard that term. Can you clarify further. Do you need the PSD as CMYK or RGB? Can you provide an example CMYK TIFF and the desired PSD file, so we can examine and figure out what it is you need?

Do you have one CMYK TIFF that needs to be converted to CMYK PSD or do you have 4 separate 1-channel TIFFs that need to be combined into one CMYK PSD.

If you have 4 single channel tiff files that represent C,M,Y,K channels and you want a single CMYK PSD, then try

Code: Select all

convert 1.tiff 2.tiff 3.tiff 4.tiff -set colorspace CMYK -combine CMYK_result.psd
retrorecover
Posts: 6
Joined: 2018-07-27T04:19:34-07:00
Authentication code: 1152
Location: Portugal

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by retrorecover »

Hi there,

Frist of all thank you for your help.
When I say flat I mean no layers.
About your script: magick 1.tif 2.tif 3.tif 4.tif -set colorspace CMYK -combine CMYK_result.psd

Give this error for witch tif:
magick: Invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectoryCheckOrder' @ warning/tiff.c/TIFFWarnings/997.
magick: Unknown field with tag 34032 (0x84f0) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/997.
magick: ASCII value for tag "Software" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/997.

But finished, I open the file CMYK_result.psd is ok, but the the separations are inverted.

Please let me know how i can send you my files.

Thank you for your support.

Kind regards,
Fernando Oliveira
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by fmw42 »

Post your images to some free hosting service that will not change the format, such as dropbox.com, and put the URLs here. You can also zip the files and post the zip file and put the URL of the zip file here.

To suppress the warnings (they are not errors), add -quiet as below

try

Code: Select all

magick -quiet 1.tif 2.tif 3.tif 4.tif -colorspace CMYK -combine CMYK_result.psd
or

Code: Select all

magick -quiet 1.tif 2.tif 3.tif 4.tif -negate -set colorspace CMYK -combine CMYK_result.psd
retrorecover
Posts: 6
Joined: 2018-07-27T04:19:34-07:00
Authentication code: 1152
Location: Portugal

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by retrorecover »

Hooowwwww :) Congratulations ImageMagick is the most powerfull tool of is kind.

Perfect, exacly what I need when suport pantone channels, so perfect...

On the link bellow send you the exemple of what I need:

http://www.tecnogravura.com/fmw42.7z

You guys it will have my suport for sure. Thank you again.

Kind regards,
Fernando Oliveira
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by fmw42 »

Fernando,

I cannot help you to create more than 4 channels in a PSD file. ImageMagick does not support that, yet. It is on the wish list, but I have no control over when that might be implements and do not know of any set time frame.

If you are having trouble with combining 4 channels into a simple CMYK PSD, then send me your PSD results from ImageMagick and also from Photoshop and I will see if I can help you to get ImageMagick to match.

Did you try either of my last two commands? Did they do what you want or not?
retrorecover
Posts: 6
Joined: 2018-07-27T04:19:34-07:00
Authentication code: 1152
Location: Portugal

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by retrorecover »

Hi,

I don't have any trouble with CMYK PSD, it Works 100% ok.
But my wish is more then four channels like the exemple I share with you, or just 2 or 3 chennels... depending of the job.
For exemple I have jobs just with one channel P-485 or with two channels Black + P-345, etc...
Maibe one day ImageMagick can do that, have to wait. Until there I will continue using Photoshop Actions.

Kind regards,
Fernando Oliveira
retrorecover
Posts: 6
Joined: 2018-07-27T04:19:34-07:00
Authentication code: 1152
Location: Portugal

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by retrorecover »

Hi there,

Can you please let me know about the improvents in this way.
Thank you very much.

Obs.: Do you guys have a donation interface? I would like to help.

Kind regards,
Fernando Oliveira
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by fmw42 »

ImageMagick 7 can support many channels internally. But there has not been any real effort, as yet, as far as I know to read or write more than 5 channels (CMYKA) for PSD or TIFF. If you would like to pay for that effort, you should contact the ImageMagick developers. See https://www.imagemagick.org/script/contact.php and https://www.imagemagick.org/script/support.php
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by dlemstra »

Could either of you open an issue on Github so we will remember to add this feature? And please attach a sample file to the issue.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merge/Convert multiple TIFF's into flate multichannel PSD

Post by fmw42 »

Dirk, I put two requests on Github. One for extra channels in TIFF and PSD and the other for layered Tiffs. I can help with creating files or testing files on Photoshop with you.
Post Reply