Page 1 of 1

[Solved] Tiffs with multiple scenes renders converts to 2 images, ignore other scenes?

Posted: 2019-03-25T02:42:35-07:00
by gabw
Hello,
I am using IM6. Cause the migration currently is to big for us.
My demo file: https://www.dropbox.com/s/u1em6g663helkhi/test.tif?dl=1

Using identify I found, that this tif file has multiple scenes:
- Scene: 0 of 2 - Compression: LZW
- Scene: 1 of 2 - Compression: RLE

My batch process clips the image using the clipping path and renders a png file, using this this command:

Code: Select all

convert -profile 'eciRGB_v2.icc' 'test.tif' -alpha transparent -clip -alpha opaque -density 72 -resize 3000x3000 'export.png'
My result is 2 files:
  • export-0.png / correct file output, but wrong file name
  • export-1.png / distorted path
https://www.dropbox.com/sh/h6901do1wn1v ... 519ba?dl=0

If I somehow can ignore the other scene so my export.png will be named exactly 'export.png' - this would be great - any ideas?

Photoshop also just shows one path, which is correct and equals export-0.png:
Image

Re: Tiffs with multiple scenes renders converts to 2 images, ignore other scenes?

Posted: 2019-03-25T09:02:00-07:00
by snibgo
Your input can be 'test.tif[0]' to read just the first image.

You are converting the input image to a new profile. The "-profile" should come after the input name, not before.

Re: Tiffs with multiple scenes renders converts to 2 images, ignore other scenes?

Posted: 2019-03-25T09:26:32-07:00
by gabw
Thank you very much for your response - works like a charm! Also didn't notice the wrong arg order of -profile - Now the converted files look a lot better :D