Image module displaying screwed up images

EatJason - October 2, 2007 - 19:58

I'm using the Image module to upload images, but when I view them on the website, they turn out like this: http://eatjason.googlepages.com/broken.jpg. I look in the files/images folder, and the files themselves aren't corrupt at all, they look just fine. Anyone know what the problem is?

(no title)

cog.rusty - October 2, 2007 - 22:24

What is "broken.jpg"? Is it an image inside Drupal's installation directory?

Usually the path of a bad image is the best clue for figuring out this kind of problems.

Broken.jpg was a game

EatJason - October 4, 2007 - 18:56

Broken.jpg was a game screenshot that I used Images module to upload, then when viewing it off the site, I did a "save as" to get a saved image that was messed up (they arent messed up in the folder). The path is http://localhost/drupal-5.2/files/images/monkey3.preview.jpg (I saved it as broken.jpg and put it on my googlepages server to illustrate how they are messed up) I look in the folder, and that image has nothing wrong with it, only when viewing it from the website. It looks like it even adds distortions from other images on the site (i see parts of other images in the mess that the image has become).

(no title)

cog.rusty - October 4, 2007 - 20:45

Not sure what is going on, but here are a couple of lucky tries.

One thing to check is the path of the distorted image on your site (by right-clicking). Is it the same file path where the image is located, or does it show you a derivative image from another path?

Another thing to check is any image processing modules which you may have installed for cropping and resizing (imagecache, image_exact etc),

Also check your /admin/settings/image-toolkit page. Are you using GD2 or ImageMagick? (the one coming with image module in an .inc which you copy to your /includes).

 
 

Drupal is a registered trademark of Dries Buytaert.