Thanks for bringing that to my attention, saintmike.

I tried adapting my script with the revised Annotate - still no text on the photo.

So I used the whole script as written by Michael Schilli, simply changing file names and adding headers. The result? A perfectly cropped photo in a nice frame with absolutely NO annotation!! This is driving me insane :) I'm particularly bemused as I have done a search on google and cannot find a particular issue with annotate on unix servers. If there was such an issue I would have thought there would be a fair amount of noise about it.

#!/usr/bin/perl ################################################## # mschilli@perlmeister.com 1999 # Ein Bild manipulieren ################################################## use Image::Magick; $image = Image::Magick->new; $image->Read("../new.jpg") && die "Cannot read"; $image->Crop(geom=>'155x300+110+100'); $image->Scale(width => 200); $image->Frame(inner => 2, outer => 2, width => 20, height => 20); $image->Annotate(text => "Woohoo!", geometry => "+55+30", pen => "red", font => 'helvetica', pointsize => 30); $image->Write("../new1.jpg") && die "Cannot write"; print "Content-type: text/html\n\n"; print "finished";
Update: I have just checked the version of Image::Magick my server is running and it is 5.45 In the hope it might help, I have just requested an upgrade...

In reply to Re^2: Image::Magick text on jpeg by jonnyfolk
in thread Image::Magick text on jpeg by jonnyfolk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.