in reply to Getting pixel colours with Image::Magick

> I'm a little confused about where full documentation for the perl ImageMagick module could be found.

The module Image::Magick is a thin wrapper around ImageMagick the binary which is normally a PITA to work with.

Be warned: It has a very bad reputation about documentation, consistency and backwards compatibility.

Most people I know who worked with it - including me - were swearing.

You may find the correct features by trial and error, but don't be too sure your stuff works after updating IM.

Sorry.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Update

Fixed typo

  • Comment on Re: Getting pixel colours with Image::Magick

Replies are listed 'Best First'.
Re^2: Getting pixel colours with Image::Magick
by Corion (Patriarch) on Aug 11, 2019 at 09:11 UTC

    Maybe you can suggest an alternative approach that you used successfully?

    Personally, I find Imager to work quite well. See Imager::Draw and Imager::Color:

    my @colors = $img->getpixel(x => 0, y => [ 0 .. 3 ], type => '8bit +'); # ... $img->setpixel(x=>50, y=>70, color=>[ 255, 0, 255 ]);

      The fork GraphicsMagick is supposed to be a safer, better version of ImageMagick. I expect the API and lack of docs will be similar though. I suppose a loose analogy would be GraphicsMagick is to ImageMagick as MariaDB is to MySQL.

      I was addressing the question why it's sparsely documented.

      Simple things work considerably well, but care should be taken.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice