Re: Errror in mod Image::magick or something else?



Infochannel wrote:
I've bought a perl script a few days ago, which will not work at all.
The programmer can't or will not help me in solving the problem.

Then ask to have your money back. ;-)

<snip>

use Image::Info qw(image_info dim);

<snip>

    my $info = image_info($newfile);
    if ($info->{file_media_type} !~ /image/){
        $message.=br."Sorry your file does not appear to be an image
file so could not be used.";
        unlink($newfile);
    }

<snip>

On my server all required modules are installed and working with other
scripts. OS is gentoo linux.

calling the script gives the error message "Sorry your file does not
appear to be an image file so could not be used."

If the problem would lie in a CPAN module, and not in the script, it's the Image::Info module that is used for that check, not Image::Magick. Have you checked that the file type is supported by the version of Image::Info you are using?


Please see: http://www.thepixelwars.de/maze/index.html

Why? What has that page to do with it?

I've seen, that nothing is stored in the tmpdir, so its normal that
image::info gives that error.

Faulty conclusion, since the failed check removes the file.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.