Page 1 of 1

Annotate only working on even pages...

Posted: 2016-01-21T08:29:24-07:00
by vincent.vanneer
Hi

I'm pretty new to ImageMagick.

I'm trying to add a text layer on specific page in a multipage TIFF file.

When I run the command:

convert d:\temp\test.tif -font Arial -pointsize 11 -gravity Southeast -annotate +20+40 "my text" d:\temp\output.tif

Test.tif is a multipage TIFF with 8 pages.

The text layer "my text" is only showing on pages 2,4,6 and 8

It should be printed on the first page.

I've tried splitting the TIFF into single pages but that doesn't work either.

convert d:\temp\test_1.tif -font Arial -pointsize 11 -gravity Southeast -annotate +20+40 "my text" d:\temp\output.tif

Output.tif doenst' contain my text. When I run the same command but with test_2.tif it's working...

Anyone has an idea??

Re: Annotate only working on even pages...

Posted: 2016-01-21T09:11:22-07:00
by snibgo
I expect there is something strange about the odd-numbered pages in your input file, such as a canvas offset. "identify verbose" may reveal the problem. "+repage" before the "-annotate" might cure the problem.

Re: Annotate only working on even pages...

Posted: 2016-01-22T00:38:36-07:00
by vincent.vanneer
Hi

Works like a charm! Adding +repage before the -annotate did the trick!

Thank you very much.

Kind regards

Vincent