List Info

Thread: Annotate first page only of multi-page tiff




Annotate first page only of multi-page tiff
user name
2006-12-06 15:21:35
Thanks for the link.  The annotation does work on the first
page but the swap doesn't seem to be processing correctly. 
On a 12 page tiff, page 12 becomes page 1 and there is no
longer a page 1.  I'm still messing with it trying to get it
to work but you definitely pointed me in the right
direction.  Thanks very much

>>> Anthony Thyssen <anthonygriffith.edu.au> 12/4/2006 7:04 PM >>>
"Justin Miller" on  wrote...
| Is it possible to use convert to annotate just the first
page of a multi-page tiff?
| 
| My command line is:
| 
| convert -fill black -pointsize 36 -draw "text 10,50
'some text here" +matte f225.tif zzz.tif
| 
| if I add [0] to the input file, I only get that page in
the output file
| 
| Any help appreciated
| 
Yes...

But first,  read the image BEFORE processing it.

second you are missing a quote charcater for the drawn
string.

Third see the example
  http://www.cit.gu.edu.au/~anthony/graph
ics/imagick6/animations/#frame_mod 

Yes the example is for an animation, but an animation is
just a
multi-image sequence, exactly the same as what you have...

Solution...

   convert f225.tif 
      ( -clone 0 -fill black -pointsize 36 
         -draw "text 10,50 'some text here'" )
-swap 0,-1 +delete 
      zzz.tif

You can replace the -draw with, the more advanced and
simpler
    -annotate +10+50 'some text here'

annotate will also let you rotate or slant the text
overlayed on the image...
see...
  Text Rotation with Translation
 http://www.cit.gu.edu.au/~anthony/g
raphics/imagick6/annotating/#text_rotation 

Enjoy, and let us know how you go.

  Anthony Thyssen ( System Programmer )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
   /Earth is 98% full.  Please delete anyone you can!   -
rec.humor.funny
 -----------------------------------------------------------
------------------
     Anthony's Home is his Castle     http://www.cit.gu.
edu.au/~anthony/ 
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org 
http://studio.imagemagick.org/mailman/listinfo/magick
-users


_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
Annotate first page only of multi-page tiff
user name
2006-12-07 02:37:45
"Justin Miller" on  wrote...
| Thanks for the link.  The annotation does work on the
first page but the swap doesn't seem to be processing
correctly.  On a 12 page tiff, page 12 becomes page 1 and
there is no longer a page 1.  I'm still messing with it
trying to get it to work but you definitely pointed me in
the right direction.  Thanks very much
| 
If     -swap 0,-1 +delete    is failing
try using     -insert 0  -delete 1
OR            -delete 0  -insert 0

Also check how old your IM is.


  Anthony Thyssen ( System Programmer )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
    Man may come, and man may go, but the earth abides.  --
"The Earth Abides"
 -----------------------------------------------------------
------------------
     Anthony's Home is his Castle     http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )