laziness, impatience, and hubris | |
PerlMonks |
Howto convert Image::Grab jpg object to Image::Magick object???by dazz (Beadle) |
on Mar 27, 2017 at 08:24 UTC ( [id://1186052]=perlquestion: print w/replies, xml ) | Need Help?? |
dazz has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I have grabbed a jpg image from an IP camera with Image::Grab. So I have a valid image object. I want to pass the image to a subroutine. Within the subroutine, I want to use an Image::Magick method to do a read test on the image. </p) Back in the main code, I want to use the grabbed image object and annotate/composite using Image::Magick methods. So how do I pass a Image::Grab object to a sub-routine, then apply a read-only Image::Magick method to it? How do I take a Image::Grab object and apply a write Image::Magick method to it? The questions are similar but different. At present, I am achieving this by saving the Image::Grab jpg to hard drive, then reading it into a Image::Magick object. It is slow and inefficient. Dazz
Back to
Seekers of Perl Wisdom
|
|