Just another Perl shrine | |
PerlMonks |
CPAN "Imager" Module Questionby ack (Deacon) |
on Nov 08, 2010 at 06:01 UTC ( [id://870036]=perlquestion: print w/replies, xml ) | Need Help?? |
ack has asked for the wisdom of the Perl Monks concerning the following question: I am trying to use the CPAN "Imager" module to do some fairly simple imager processing (mostly edge detection) using grey-scale JPEG and GIF files as inputs. The source images are color, but since I only need to detect edges, I have converted the color images to 8-bit grey scale (JPEG and GIF depending upon what the source file format was) and saved then as grey scale for input to my Perl script. I have been developing the script on my PC at work (an Intel Dual Core with about 2MB of RAM running Windows XP Pro). I used the constructs:
It showed that, as I needed, it supports JPEG and GIF formats among others. I decided to bring my work home with me to continue the development over the weekend. The script kept failing and it took me a while to figure out why. Then I tried the above listed script and found that the output says Imager on my home laptop only supports the following:
I am confused. This says that on my laptop (an Intel(R) Pentium(R) M 900 MHz with 500 MB of 593 MHz RAM runing Windows XP Pro) I don't have support for JPEG or GIF! These are two of the most popular image formats. In both cases (i.e., on both computers) Imager was installed from the ActiveState web site using the Perl Package Manager (PPM) and both are the same version of Imager (version 0.78). I have looked at the CPAN documentation for Imager and its sub-topic documentation (e.g., the "Files" and "ImageTypes") but all it says is that the file types supported are determined by what options Imager was compiled with; but since on both computers the modules are pre-complied and loaded from ActiveState using PPM then I wouldn't think that is the source of the discrepancy. I keep thinking this should be obvious, but it isn't to me. So, I have a three questions. First, this doesn't make sense to me, so what am I missing? (it's got to be me). Then, on the outside chance that it *isn't* so straightforward: Second, why do two different Intel processor platforms (both running Windows XP Pro) support different Image file formats? Third, why would *any* platform, irrespective of the processor, *not* support JPEG and/or GIF? As an aside, I have converted the images to BMP format (which both platforms support) and am getting along. But the above is still troubling me.
ack
Albuquerque, NM
Back to
Seekers of Perl Wisdom
|
|