http://www.perlmonks.org?node_id=348589


in reply to A little Gimp script

From the TIMTOWTDI desk:

You might also want to consider Image::Magick, which does all the resizing things without having to have an X server running and Gimp loaded.

Gimp is great for user-driven image manipulation, but when it's script-driven, ImageMagick has been much easier to use for my projects.

--
Spring: Forces, Coiled Again!

Replies are listed 'Best First'.
Re: Re: A little Gimp script
by perlinux (Deacon) on Apr 28, 2004 at 09:48 UTC
    I want to thank you all!!! :-) but... :-(
    I'm trying to install Image::Magick but I have errors like these:
    Magick.xs:359: error: (near initialization for `Methods[74].arguments[ +3]') Magick.xs:359: error: initializer element is not constant ...
    and then:
    make: *** [Magick.o] Error 1
    I have installed libraries, perl-magick etc...and edited Makefile to find my libraries...

    And what about Imager module??

    Thanks a lot, monks

      If you can't get the module to install, you can fall back to calling the ImageMagick command line utilities (which is what I do because I didn't know about Image::Magick when I started using ImageMagick.) IM binaries are available for most OSes (even Win32).


      --
      Spring: Forces, Coiled Again!

      Have you tried a binary version of the perl-magick package. I also had problems with a source install of the Image::Magick but I installed the .rpm's for PerlMagick and IM that were packaged for my distro(Mandrake) and I got it to work. On Windows, perlMagick was an option during the ImageMagick binary install.

      I believe .debs are availible as well if you are an apt user.