GIFs or PNGs without pain? Tell me!

dws on 2006-02-12T21:56:45

Is there portable Perl somewhere for producing GIFs or PNGs?

Every month or so, usually in different environments, I need to produce data-drive graphic for some web app. If I'm lucky (which has been about 25% of the time), GD will be installed. If I'm not lucky (again, about 25% of the time), I either can't acquire admin rights on the box, or can't marshall all of the pieces needed to build GD, and then burn up time doing some kludgey one-off. The in-between 50% just takes time.

This time, I scratched the itch by finding a half a page of pure Ruby for generating PNGs, and did the data analysis and graph production in another two pages of Ruby.

There's gotta be a way to painlessly convert bits to some web-friendly image format in Perl.


Painful? Not sure...

sigzero on 2006-02-13T01:59:18

A search of CPAN got me this:

http://search.cpan.org/user/exiftool/Image-ExifTool-5.87/lib/Image/ExifTool/PNG.pm

Re:Painful? Not sure...

dws on 2006-02-13T04:26:36

I saw that, and it wasn't at all clear from the POD how to use it.

Re:Painful? Not sure...

sigzero on 2006-02-13T14:20:00

That would make it painful. :)

Re:Painful? Not sure...

n1vux on 2006-02-13T19:32:55

Could be hard to figure how to draw with an EXIF tool because it only reads and writes the meta data ... the non-graphical text embedded in the image file to document when/where/why created, copyright, model release / aperature/filmspeed, ....