Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Wanted: Graphics module(s)

by michaeld (Monk)
on Jun 24, 2003 at 20:26 UTC ( [id://268663]=perlquestion: print w/replies, xml ) Need Help??

michaeld has asked for the wisdom of the Perl Monks concerning the following question:

Greetings, most exalted Monks,

I'm looking for a graphics module ( or combination of modules ) that will allow me to do the following:
- create new graphics;
- 'import' existing graphics, preferably with the possibility to crop/resize them;
- add text;
- add coloured polygons;
- ... and finally save everything as a JPG.

As always, any help is deeply appreciated

Cheers,
MichaelD

Replies are listed 'Best First'.
Re: Wanted: Graphics module(s)
by broquaint (Abbot) on Jun 24, 2003 at 23:07 UTC
    Another option is the up and coming Imager which is apparently all the rage these days (or so I've heard). It does all sorts of fancy tricks and doesn't require an external library to do the graphical manipulations (only requiring the libraries associated with the various image formats) and from the looks of it fulfils your requirements. Nice.
    HTH

    _________
    broquaint

Re: Wanted: Graphics module(s)
by BrowserUk (Patriarch) on Jun 24, 2003 at 20:51 UTC

    You can certainly produce graphics that include polygons and text and then output the results using GD. You can also load an existing image into GD and copy a sub-rectangle of it to a new image. Ie crop. I don't think it has any facilities for scaling.

    The salient question here is what format are those "existing graphics" in? If you mean images in the form of jpg or png or similar, then GD can load and modify (by over writing) and output those. If the graphics are in some vector graphic format you would need to render them to an image format first.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Re: Wanted: Graphics module(s)
by hossman (Prior) on Jun 24, 2003 at 20:52 UTC
Re: Wanted: Graphics module(s)
by halley (Prior) on Jun 24, 2003 at 20:31 UTC
    It's nice you asked us, but did you ask Google or CPAN first? I imagine GD and ImageMagick are the top two.

    --
    [ e d @ h a l l e y . c c ]

      BTW... Copy/paste is another requirement of mine
      (as allolex gracefully pointed out)

      Cheers,
      MichaelD

      Actually, I did... ( + I CB'ed the question as well...)
      Not the first time I'm around, you know ;-)

      Image::Magick is not what I want... as for GD, I'm not sure.

      Thanks for the tip, anyway

      Cheers,
      MichaelD

        Image::Magick is not what I want... care to elaberate?

        -Waswas

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://268663]
Approved by gellyfish
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-05-30 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found