Gallery 2.x Thumbnail broken and won’t rebuild

Written by James McDonald

March 23, 2010

Was just looking in my Gallery and found an image with a broken thumbnail. Broken thumbnails seem to be a semi-regular occurence.

Normally if this happens I can use the Gallery 2.x photo edit functionality and;

  1. rotate the photo back and forth and the thumbnail rebuilds.
  2. or use the crop thumbnail functionality which likewise rebuilds the thumbnail (I’m not aware of a per album thumbnail rebuild option. Let me know if there is)

Despite doing the above, this time the thumbnail stayed broken.


Downloaded the full sized photo, deleted the original photo from Gallery 2.x and then reuploaded – Thumbnail still broken.
Opened in eog (Eye of Gnome) – No errors so I renamed the full sized photo and reuploaded (thinking maybe a stale db record was pointing to an old corrupt image) – Thumbnail still broken.

The fix:
Opened the photo in GIMP and I got an error message “Premature end of image”. Used File ==> Save As in GIMP and then reuploaded this new image and the thumbnail worked.


Submit a Comment

Your email address will not be published.

You May Also Like…

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...