The stupid question is the question not asked | |
PerlMonks |
Re^4: Cannot save all image formats after compiled to exeby GrandFather (Saint) |
on Dec 29, 2020 at 05:36 UTC ( [id://11125916]=note: print w/replies, xml ) | Need Help?? |
I installed Imager::QRCode and PAR::Packer using cpan then used pp test.pl -o test.exe -c -x to generate a 7.8MB test.exe. I got the same results that you did. I then reworked your code to give better diagnostics and to be a little more modern (using lexical file handles):
When packed and the executable is run I get errors like:
As you can see from the sample code above explicitly including the appropriate image file modules fixes the problem (.jpg was a problematic format on my system). You could of course use -M Imager::File::JPEG ... on the pp command line to achieve the same result.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|