perldough has asked for the wisdom of the Perl Monks concerning the following question:
I need to import a PNG image into a piddle. To no avail, I tried to use a bit of code that I have successfully used in the past to import TIFFs to piddles (see below).
When I run this, I get the following error message:use strict; use PDL; use PDL::IO::Pic; my $path = 'Z:\path\filename.png'; my $piddle = rim($path);
can't figure out file type, specify explicitly at Basic/Core/Core.pm.PL (i.e. PDL::Core.pm) line 396Any ideas? Ideally, I would like to stick with rim, but I am willing to move to something else if required or appropriate. Thanks, Perldough
-----PDL::Core::barf('can\'t figure out file type, specify explicitly') called at C:/Perl/site/lib/PDL/IO/Pic.pm line 303
-----PDL::rpic('PDL', 'Z:\path\filename.png') called at C:/Perl/site/lib/PDL/IO/Pic.pm line 278
-----PDL::IO::Pic::rpic('Z:\path\filename.png') called at C:/Perl/site/lib/PDL/IO/Pic.pm line 576
-----PDL::IO::Pic::rim('Z:\path\filename.png') called at Z:\path2\test4.pl line 7
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Importing a PNG image to a piddle
by syphilis (Archbishop) on Jul 18, 2012 at 00:26 UTC | |
by perldough (Sexton) on Jul 18, 2012 at 15:56 UTC | |
|
Re: Importing a PNG image to a piddle
by BrowserUk (Patriarch) on Jul 17, 2012 at 22:02 UTC | |
by perldough (Sexton) on Jul 18, 2012 at 15:55 UTC | |
|
Re: Importing a PNG image to a piddle
by zentara (Cardinal) on Jul 18, 2012 at 11:45 UTC |