in reply to Re^8: Perl Image Analysis
in thread Perl Image Analysis
I found that of course if I changed that line instead tomy $MyImage = GD::Image->newFromJpeg($file, 0);
That it will then happily read PNG files. Had I remembered having set GD to read Jpeg files, I probably would have realized that one earlier. Of course, the errors telling me that the file wasn't Jpeg probably should have clued me in, as well...my $MyImage = GD::Image->newFromPng($file, 0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Perl Image Analysis
by BrowserUk (Patriarch) on Oct 06, 2006 at 22:27 UTC |