Page 1 of 1

Rebuild thumbs does not work

Posted: Fri Jun 23, 2006 11:18 am
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?

Re: Rebuild thumbs does not work

Posted: Fri Jun 23, 2006 11:35 am
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

Posted: Fri Jun 23, 2006 2:55 pm
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.

Posted: Fri Jun 23, 2006 3:05 pm
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

Posted: Fri Jun 23, 2006 3:44 pm
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

Posted: Fri Jun 23, 2006 8:18 pm
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??

Posted: Fri Jun 23, 2006 10:22 pm
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.

Posted: Sat Jun 24, 2006 12:46 am
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

Posted: Sat Jun 24, 2006 11:11 am
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.

Posted: Sun Jun 25, 2006 4:50 am
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.

Posted: Sun Jun 25, 2006 10:02 am
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 ...

Posted: Mon Jun 26, 2006 12:33 pm
by garvinhicking
Hi plofhead!

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

Best regards,
Garvin

Posted: Wed Jun 28, 2006 10:59 am
by plofhead
Hi,

Yes, I did purge my browsers cache. And the problem is gone!
Sorry for the fuzz.