Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Downloading Corrupted Images

by sgifford (Prior)
on May 10, 2007 at 16:21 UTC ( [id://614681]=note: print w/replies, xml ) Need Help??


in reply to Downloading Corrupted Images

Your program works for me, but there's definitely something odd with that image. I can open it fine in Firefox, either with the URL or with the file downloaded by your program. But my regular image viewer (Eye of Gnome) crashes when I try to open the file, whether it's the one downloaded from Perl or saved from the Web browser. The file saved from the Web browser is identical to the file retrieved by your program.

However, if I convert the image with Image::Magick into an image with the same specs (I'm just running convert test.gif test2.gif), it will open up fine in my image viewer.

So, maybe your problem isn't with the Perl script, but with a weird image screwing up later steps in the process, and maybe Image::Magick can make the image less weird.

Replies are listed 'Best First'.
Re^2: Downloading Corrupted Images
by biggs06 (Initiate) on May 10, 2007 at 16:51 UTC
    OK, I moved over to a windows machine and it looks like it can read all the images. I guess I will just have to finish my work on it. Thanks for the helping me narrow it down, it was giving me a headache. I guess the problem was that they are just bad gifs?
      Well, weird anyways. Some image viewers seem to open them, others don't, so it could be a problem with the image viewer or with the GIF. It's fair to say that they're "GIFs that tend to confuse image viewers", though. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://614681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-18 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found