Specific Photos not generating thumbnails

I just logged a bug about this too, but just wondering if anyone else has seen this problem? I have 100's of photos that work great, but I also have several that just don't work, and only can be viewed by using the "download original file" link.

According to phpinfo, I do have GD2 installed (since a lot of my photos do work.)

I attached one of the problem jpgs to the bug report for someone to try also.


Hello, could it be that the


could it be that the problematic pictures are bigger(pixel wise) then the others?
If not, are in their names some special characters like ' & or other?
If it is bug it would be great to find it :)

Problem photo sizes (a few

Problem photo sizes (a few of them):

Working photo sizes:

I have 7000+ photos, so it's hard to tell you for sure, but I believe most of my photos are 1024x768, and I have not found a broken pic that is sized 1024x768. Seems that the smaller pictures are having trouble.

Have you been able to get the one I attached to the bug report to work? That one is sized 800x600.


oh, and I don't have any

oh, and I don't have any special characters in the filenames. mostly [a-Z], [0-9] and underscores. That's as wild as it gets. :)

some more clues

I tried out another php gallery script to see what would happen with the same files, and I got some warning messages. Looks like my jpg files are corrupt. But not corrupt enough to be displayed in Firefox or IE? Hmmm... I'll need to dig around some more. Maybe I can process them with another tool to fix the images.

Any ideas?

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: 2 extraneous bytes before marker 0xdb in

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'p1010001.jpg' is not a valid JPEG file


source of corruption

Google returned some information that explain what happened to my images. 5-6 years ago, I was using a piece of software that corrupted my jpg files when they were initially resized. So, I just need to go back to the original source and resize them again.

In case anyone is interested, this is what I found:

So... what could phpAlbum do to help? Would it be reasonable to catch this exception and toss a message in an error log? It would help speed along the resolution time. You have a corrupted file to test it on too! :)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.