Thanks Ron, However I have figured out the origin of the error. When I do a 'identify -list format' I have the list of supported format that does not contain PNG nor TIFF.
How can I fix this and make my ImageMagick take those extensions into account? Cheers Patrick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Savage Sent: Wednesday, 7 June 2006 12:57 p.m. To: List - ImageMagick Users Subject: Re: [magick-users] Pb Exception 420:NoDecodeDelegateForThisImageFormat On Wed, 7 Jun 2006 10:08:11 +1200, Patrick Tissot wrote: Hi Patrick > I run a Perl script using ImageMagick (PerlMagick) in order to > resize and convert images. That's a good start... > This script runs well with: > - GIF images > - BMP images > - 95 % JPG images > But with the PNG, TIFF and some JPG images I have the following > error: > Exception 420: NoDecodeDelegateForThisImageFormat > `/usr/people/ican/imageFramework/retailers/digitalshop/in/images/compl > ete/ba bytux.png' at Image.pl line 220. Using V 6.2.7 I can force this message to appear at will: Exception 420: no encode delegate for this image format which is slightly different that yours. The technique is this: In a CGI script I put: delete @ENV{'BASH_ENV', 'CDPATH', 'ENV', 'IFS', 'PATH', 'SHELL'}; # For security. and it's the PATH component which causes the error. This is just saying ImageMagick uses the PATH to load a component to process pngs. If I use gifs instead, the problem does not appear. As for the other 5% of JPEGs, perhaps they are PNGs with the wrong extension? I'm guessing. > Can't locate object method "Resize" via package "Exception 410: > NoImagesDefined `Image::Magick'" (perhaps you forgot to load > "Exception 410: NoImagesDefined `Image::Magick'"?) at Image.pl line > 232. Probably this error is due to the previous error. I'm guessing. Note: I'm resending this message. The previous try failed with an error I get occasionally: The original message was received at Wed, 7 Jun 2006 10:39:38 +1000 from c220-239-142-117.eburwd1.vic.optusnet.com.au [220.239.142.117] ----- The following addresses had permanent fatal errors ----- <magick-users@imagemagick.org> (reason: 554 5.7.1 Rejected 211.29.133.160 found in spam.dnsbl.sorbs.net) ----- Transcript of session follows ----- ... while talking to studio.imagemagick.org.: >>> MAIL From:<[EMAIL PROTECTED]> <<< 554 5.7.1 Rejected 211.29.133.160 found in spam.dnsbl.sorbs.net 554 5.0.0 Service unavailable -- Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html _______________________________________________ Magick-users mailing list Magick-users@imagemagick.org http://studio.imagemagick.org/mailman/listinfo/magick-users _______________________________________________ Magick-users mailing list Magick-users@imagemagick.org http://studio.imagemagick.org/mailman/listinfo/magick-users