Detecting Transparency?
Posted: 2015-03-23T14:58:08-07:00
Hi,
I have a pretty simple application that i've inherited maintenance of. The app keeps a directory of images that can be searched based on a number of stored data points. I've been ask to add a boolean flag if an image has transparency. All the images are png, jpeg, and maybe some gifs. I tried using matte() like this:
But, I got the following error:
I am using perl and Mojolicous on a Mac with Yosemite. I didn't install Image::Magick so from cpan, or the libraries on my mac, so I'm assuming it's a standard install.
Any ideas?
Thanks,
I have a pretty simple application that i've inherited maintenance of. The app keeps a directory of images that can be searched based on a number of stored data points. I've been ask to add a boolean flag if an image has transparency. All the images are png, jpeg, and maybe some gifs. I tried using matte() like this:
Code: Select all
my $image = Image::Magick->new;
$image->read($directory.$file_name);
return $image->matte();
Code: Select all
Can't locate auto/Image/Magick/matte.al in @INC
Any ideas?
Thanks,