geektron has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Image::Magick woes
by tachyon (Chancellor) on Sep 05, 2003 at 03:56 UTC | |
by geektron (Curate) on Sep 05, 2003 at 04:00 UTC | |
by geektron (Curate) on Sep 05, 2003 at 04:09 UTC | |
by tachyon (Chancellor) on Sep 05, 2003 at 04:48 UTC | |
by Arbogast (Monk) on Sep 05, 2003 at 05:15 UTC |