Two errors. David caught the "package -> use" error. I wrote another error -- I used "all" when I should have used "andover". "all" collapses all the way to a Perl scalar; "andover" collapses in one dimension.

Making those two changes makes it work OK on my system.

Cheers,
Craig

On May 10, 2011, at 9:21 AM, David Mertens wrote:

Luca -

Dumb question... is sem.jpg the name of the image file you're trying to open?


Hi David,
Yes it is.
And it's in the same directory of the script.
Using absolute path provides the same error...

The sem.jpg picture is opened without problems using Image::Magick
Read method and Image::Imlib2 load method.

Thanks :)

Good. Getting the dumb errors out of the way first. :-)

Before we go any further, I must say I don't use PDL::IO::Pic, so I'm
mostly just trying to help with general compilation issues. Another
fishy item is this line:
--------%<--------
package PDL::IO::Pic;
-------->%--------

Almost surely you meant to say this:
--------%<--------
use PDL::IO::Pic;
-------->%--------

Also, calling your test script pdl.pl is just asking for confusion.
Perhaps 'convert-jpg-to-png.pl' would be better? :-)

David

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl



_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to