I have looked to GD:SVG, but it doesn't import the given svg images and can't scale. SVG seems complex to learn.

Does anyone know which perl modules I can use to accomplish the drawing part as simple as possible or give some code snippets i can use?

I realize you asked for Perl modules (AM provided a few good ones you should definitely check out.) to accomplish the drawings but this may be another option:

If you're uneasy about learning SVG, although it's really not as hard as you may be thinking, you can try the open source vector program Inkscape for creating the drawings. SVG is Inkscape's native file format and you can even view a drawing's markup in it's XML editor. You can also do batch automation which should take care of your resizing and conversions to png or jpeg.

You can work with Inkscape from the command line which — I believe — will give you the ability to script it with Perl. Other more prolific Inkscape users may be able to confirm/deny that for you.

Hope this helps. Good luck!
Luis

"...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote

In reply to Re: SVG manipulation by luis.roca
in thread SVG manipulation by martell

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.