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

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
gabw
Posts: 28
Joined: 2014-07-20T09:20:15-07:00
Authentication code: 6789

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

Post 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
Last edited by gabw on 2019-03-25T09:26:47-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
gabw
Posts: 28
Joined: 2014-07-20T09:20:15-07:00
Authentication code: 6789

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

Post 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
Post Reply