Exception 450: Empty input file (/var/tmp/magic81OnytHVZvna2f.tmp)
I'm trying to use an uploaded image, resize if needed, and save to a new directory. Earlier, I adapted the code to not depend on CGI's upload method because i wasn't getting anywhere with it ....
so here's the code in question:
if the files weren't where i say it is via $tmpName , the OPEN statement should die. and i've verified on the filesystem, and it's there, alright, and ~400K.my $thumb = Image::Magick->new(); open( THUMBFILE, $tmpName ) or die "Can't open tmpImg $tmpName: $ +! \n";; my $filesRead = $thumb->Read( file => \*THUMBFILE ); close THUMBFILE; print STDERR "Read: $filesRead files \n"; my ( $height, $width ) = $thumb->Get( 'height', 'width' );
without the GLOB ref, strict complains that barewords aren't allowed.
the location reference in the error isn't the same as the file location, but i presume it should be different because of the OPEN statement ....
i'm willing to entertain just about any possiblity, from a b0rked Image::Magick/ Perl::Magick install to .... but how would i check for a b0rked install?
In reply to Image::Magick woes by geektron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |