recalculate scene numbers

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
akustik

recalculate scene numbers

Post by akustik »

Hi all,

i've got a tif with 6 pages.

and i splitt these tif into two files.

Code: Select all

convert source[0-1].tif a.tif
identify a.tif
a.tif[0] TIFF 1728x2220 1728x2220+0+0 DirectClass 1-bit 74.2676kb 0.109u 0:01
a.tif[1] TIFF 1728x2212 1728x2212+0+0 DirectClass 1-bit 74.2676kb 0.063u 0:01

Code: Select all

convert source[2--1].tif b.tif
identify b.tif
a_1.tif[2] TIFF 1728x2208 1728x2208+0+0 DirectClass 1-bit 147.576kb 0.203u 0:01
a_1.tif[3] TIFF 1728x2204 1728x2204+0+0 DirectClass 1-bit 147.576kb 0.156u 0:01
a_1.tif[4] TIFF 1728x2214 1728x2214+0+0 DirectClass 1-bit 147.576kb 0.094u 0:01
a_1.tif[5] TIFF 1728x2212 1728x2212+0+0 DirectClass 1-bit 147.576kb
if i now try to split the b.tif to c.tif with this command:

Code: Select all

convert "b.tif[0-1]" c.tif
i only get the first page of b.tif.

I think thats a problem with the scene numbers in b.tif.
Do you know a switch where i can tell convert to start with scene numbering on b.tif with 0?

I'm using ImageMagick 6.3.8 01/25/08 Q16 http://www.imagemagick.org

many thanks for your hints
patrick
akustik

Re: recalculate scene numbers

Post by akustik »

i got it! :D
convert source[2--1].tif -scene 0 b.tif

So b.tif starts with scene 0

Code: Select all

identify b.tif
b.tif[0] TIFF 1728x2208 1728x2208+0+0 DirectClass 1-bit 178.129kb 0.203u 0:01
b.tif[1] TIFF 1728x2204 1728x2204+0+0 DirectClass 1-bit 178.129kb 0.141u 0:01
b.tif[2] TIFF 1728x2214 1728x2214+0+0 DirectClass 1-bit 178.129kb 0.094u 0:01
b.tif[3] TIFF 1728x2212 1728x2212+0+0 DirectClass 1-bit 178.129kb
after that the second convert works fine, too!

Code: Select all

convert "b.tif[0-1]" c.tif
gives me now the first and second page to c.tif
Post Reply