PerlMagick (a perl interface to the
ImageMagick tool)
is just what you need. It is the swiss-army knife
of perl image manipulation libraries. PerlMagick comes with the
standard ImageMagic distribution. ImageMagick can handle
many image formats including: BMP, GIF, PNG, JPG (many more, see
the full list).
The actual PerlMagick code is pretty simple to use in your application:
use Image::Magick;
my $im=new Image::Magick;
$im->Read($fname);
$im->Annotate(text=>'some text');
$im->Set(format=>'Joint Photographic Experts Group JFIF format');
$im->Write();
PerlMagick can also do many "photoshop-type" editing
effects (Crop, Scale, Blur, Despeckle, etc). It is big
but I have yet to fins a more powerful image manipulation
tool under Perl. | [reply] [d/l] |
Take a look at GD.
Maybe that's what you're looking for.
/dempa | [reply] |
Replying to my own question! :-)
Thanks for GD & PerlMagick tips.
It seems that the annotation functions in PerlMagick under Windows requires an X-server to be present. I was hoping to call the bitmap text annotation functions from a script under dos/windows without the need for an X-server etc.
The text annotation on bitmap stuff will be done on a PC running Windows 95. The PC will be running a H.320 video on demand server application (written in C++). I need to generate dynamic bitmaps from this server app (by calling a perl script to do the magic) so I think running an X server on this machine as well isn't such an elegant solution as a stand alone (small) module.
Anyone know how to do this without having to have an X server present etc?
thanks all for your help.
matt
| [reply] |
| [reply] |