Hi guys,

I've been having quite a time with perlmagick .. I just started it, and I have run into trouble on various fronts. Slightly annoyed at that, because I have an OK grasp of Imagemagick itself, so I couldn't understand the lack of progress.

My feeling, then, is that it is my lack of OOPerl knowledge that's causing the problems, as I think perlmagick hinges on that.

I have been over the perlmagick page on the imagemagick site, and it's a little unwieldy (IYDMMSS). Other people seem to have taken this page and copied it wholesale on other sites too.

Is there anywhere else you'd direct me to?

Crucially, it is the montage command that has me all-a-flutter. The main example script actually uses it. And it seems to operate without needing a loop, despite it refers to a variable with several images.

For example, in this extract
$example=$model->Clone(); $example->Label('Wave'); $example->Wave('25x150'); push(@$images,$example); # Create image montage. $montage=$images->Montage(geometry=>'128x160+8+4>',gravity=>'Center', + tile=>'6x+10+200',compose=>'over',background=>'#ffffff', font=>'Generic.ttf',pointsize=>18,fill=>'#600',stroke=>'none');
You can see a push going on, onto the images variable,(itself an image object) and then the montage operation occuring without a loop. It must be some sort of stack that is flattened ... um err.

Sorry for not making myself more clear ... if you only faintly understand, but get a sense of where my problems may lie, a pointer to some illuminating sites would be appreciated.

Many thanks in advance

In reply to advice on OO and perlmagick by stabu

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.