http://qs321.pair.com?node_id=247030


in reply to Re: Manipulating Graphics with Perl .. Image Magick Vs GD (imager.pm)
in thread Manipulating Graphics with Perl .. Image Magick Vs GD

I've never heard of Imager (and don't really have time to play with it now) - in what ways is it better than GD?

I use GD quite extensively, but exclusively for image generation (so I've never had to touch Image::Magick), it'd be great to know if there is a module out there that can improve the quality of my life.

  • Comment on Re: Re: Manipulating Graphics with Perl .. Image Magick Vs GD (imager.pm)

Replies are listed 'Best First'.
Re^3: Manipulating Graphics with Perl .. Image Magick Vs GD (imager.pm)
by Aristotle (Chancellor) on Apr 01, 2003 at 14:02 UTC
    It doesn't depend on an external library for its basic functionality - it's an completely independent and pretty slim XS module. It offers more and more flexible transformations (and is supposed to eventually offer a lot more yet). The killer criteria for me - it antialiases drawing primitives and supports TrueType fonts via FreeType, also antialiased. It is very easy to generate high quality plots using Imager::Plot (I used it for an interactive math report f.ex). I found it pretty easy to work with, overall, and quite intuitive once you figure out in spite of the lacking documentation.

    Makeshifts last the longest.

      Sweet.... any speed / memory comparisons done between imager::plot & gdgraph when you are producing many 300x300 graphs? (Twists Aristotle's arm... :) )
        It handled the load from about 20 computers hitting the page nearly simultaneously during the math report just fine, but I don't have any hard numbers and I didn't compare with GDGraph at all. I was in a hurry and needed something that did what I wanted with as little effort on my part as possible. GDGraph wasn't it. From how it handled that load though I'd expect it to scale up quite a ways before performance becomes an issue.

        Makeshifts last the longest.