Rebuild thumbs does not work

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
plofhead
Regular
Posts: 45
Joined: Fri Jun 23, 2006 9:01 am
Location: Netherlands
Contact:

Rebuild thumbs does not work

Post by plofhead »

Hi,

I want to make bigger thumbs of my images, so I changed the thumbnail size to 180. When I start Rebuild Thumbs I get the following message:

Synchronizing the database with the image folder

Skipping file: .empty not readable.
Done (Synchronized 0 images).
Resizing

Done (resized 0 images).

I made the .empty file in /uploads readable, but still the same result.

Does anybody know what is wrong?
To bee or not to bee, that is the question
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Rebuild thumbs does not work

Post by garvinhicking »

Hi!

It seems you once were using a SVN snapshot? Please try to delete that ".empty" file in the uploads directory, it shouldn't be there?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
plofhead
Regular
Posts: 45
Joined: Fri Jun 23, 2006 9:01 am
Location: Netherlands
Contact:

Post by plofhead »

Thanks Garvin,

So far so good, I removed the .empty file and Build Thumbs isn't complaining about that file anymore.

Unfortunately my thumbsnails are still not updated!

I changed the thumbnail size from 110 to 180, so I expected that all the thumbnails were generated to that bigger size. Thumbnails created from newly entered pictures are 180 pixels.
To bee or not to bee, that is the question
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Which serendipity version are you using?

Are you performing the build feature as Admin user? Can you check the SQL database serendipity_images and see what the thumbsize column says for the images?

Usually it should rebuild your thumbs, you are right on that.

As a last chance you might try to delete the 'serendipityThumb' files so that s9y tries to re-create them? [backup first, though]

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
plofhead
Regular
Posts: 45
Joined: Fri Jun 23, 2006 9:01 am
Location: Netherlands
Contact:

Post by plofhead »

Hi Garvin,

You're quick.

I run the Build Thumbnails as Admin.
I had a look at my SQL database but can't find a thumbsize column under serendipity_images.

So I backupped the images and deleted the thumbnails in the upload directory. Now Build Thumbs is creating the bigger thumbnails.
Unfortunatily all my entries with a thumbnail in it have to be edited because the old thumbnail size is still visible, or is there an easier way?

Thanks,
Bert
To bee or not to bee, that is the question
plofhead
Regular
Posts: 45
Joined: Fri Jun 23, 2006 9:01 am
Location: Netherlands
Contact:

Post by plofhead »

After removing all thumbnail files from the upload directory and rebuilding the thumbs I discovered the next strange problem: some regenerated thumbnails still have the same old (smaller) size as before however in the Media Library the newer (bigger) values are written under the thumbnail.

When I remove the picture with in the Media Library by clicking on the red cross and entering the same original in Add Media, the thumbnail is still not generated in the bigger size.
I checked the upload directory when I removed the original picture: the thumbnail is also removed.

All the pictures which have a too small thumbnail doesn't seem to get a bigger thumbnail when re-entered. Newly added pictures does get the right thumbnail size.

I had a look in the SQL-database after removing one of the pictures, but here also is the picture removed.

Any ideas??
To bee or not to bee, that is the question
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Could this be a caching issue? The thumbnail still has the same name, I bet (*.s9ythumb.jpg or whatever, IIRC). Many browsers cache images, to cut down on page loading.

Try holding shift and pressing the reload button on your browser, or clearing the image cache and reloading your page.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Sadly the thumbnail sizes in the entries do not automagically change, that is right. I'm sorry, but you really would need to change that (maybe via search+replace of an SQL dump) manually. :(

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
plofhead
Regular
Posts: 45
Joined: Fri Jun 23, 2006 9:01 am
Location: Netherlands
Contact:

Post by plofhead »

Thanks, but I still have the problem as described in my earlier posting that some of my pictures can't be updated to a bigger thumbnailsize. It's really frustating.
To bee or not to bee, that is the question
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Hmmm. Garvin's comment about the entry HTML not changing got me thinking a little more.

If you're viewing the thumbnails in an entry, the HTML may include a width= and height= parameter on the image. If so, even if the thumbnails got updated to the new size, your browser would scale them to the old size. To fix that problem, you'd need to modify the entry HTML -- like the SQL search and replace Garvin mentioned.

You could probably test this by right clicking on a thumbnail and choosing "view image" (at least, in FireFox). Then right-click the resulting image and choose "Image Properties" (again, in FireFox). If that image is the new thumbnail size, you need to change the HTML in the entries. (In fact, just removing the width and height will work, since images have an implicit size.) If it's the old thumbnail size, something much more involved is going on.
Judebert
---
Website | Wishlist | PayPal
plofhead
Regular
Posts: 45
Joined: Fri Jun 23, 2006 9:01 am
Location: Netherlands
Contact:

Post by plofhead »

I checked this in Media Library, the newly generated thumbnail does still have the old dimension in spite of the bigger size values written under that thumbmail. Something strange is going on here ...
To bee or not to bee, that is the question
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi plofhead!

Did you purge your browser's cache? If not, the old thumb might really still be cached?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
plofhead
Regular
Posts: 45
Joined: Fri Jun 23, 2006 9:01 am
Location: Netherlands
Contact:

Post by plofhead »

Hi,

Yes, I did purge my browsers cache. And the problem is gone!
Sorry for the fuzz.
To bee or not to bee, that is the question
Post Reply