How do modules like Image:Magick work?

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
Macgomes
Posts: 1
Joined: 2019-05-12T23:58:23-07:00
Authentication code: 1152

How do modules like Image:Magick work?

Post by Macgomes » 2019-05-13T00:05:46-07:00

Hello everyone,,
So, having some trouble with Image Magick and was wondering if you could clear up my mental model about how these things work.

Image Magick, it's a binary, works on the command line. But there's also Perl Magick that allows you to use Image Magick via Perl (but not in a way that it does calls out to the shell).

So the Perl Magick versions don't seem to line up with Image Magick. I'm assuming the versions don't need to be exactly in tandem? I say this because there are more recent releases of Image Magick than there are Perl Magick. If they were tied together, then Perl Magick users would be left out of these binary upgrades?

So, if we updated the Image Magick binaries... The Perl Magick modules has to be reinstalled/recompiled? Is that true? If so, why?

Side note... Image Magick taking down Perl, kinda lame. I guess that's the danger with using XS?

User avatar
magick
Site Admin
Posts: 10995
Joined: 2003-05-31T11:32:55-07:00

Re: How do modules like Image:Magick work?

Post by magick » 2019-05-13T05:09:33-07:00

The simplest path forward is to build PerlMagick when you build/install ImageMagick. Just add --with-perl on your configure command-line. It will install a compatible PerlMagick along with the ImageMagick libraries/utilities. If you build PerlMagick separately, that should be OK too. ImageMagick has had a compatible ABI for a number of years now so build/install of PerlMagick should "just work."

Post Reply