Unable to rebuild images / thumbs

matthieu

Joined: 2009-11-03
Posts: 4
Posted: Wed, 2009-11-04 07:20

Hello,

I did install the lastest git version 3 days ago (Pre RC1). It works pretty well and I'm very happy with it :-).
I just have an issue with thumb generation. I did change the size after uploading pictures, launched the rebuild but thumb still use the previous size.
There is no error reporter when rebuild is done but the warning is still here saying that images need to be rebuild.

If I add new pictures, the new size is correctly used. I don't think to be a performance issue, the pictures are small (1600x1200) and the php memory limit is 256MB.
I tried with the local.php but there is no error. Nothing in the log too.

How can I find the issue ?

Matthieu

Login or register to post comments
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 126
Posted: Wed, 2009-11-04 16:30

There are two places that you can change the thumbnail size:

Admin -> Settings -> Advanced

Admin -> Appearance -> Theme Options

I suspect you used the first location, which for some reason does not make the change to existing thumbnails.

Try making the change back to where it was on the first location, then use the second location to set it correctly.
Then go to maintenance mode and launch the rebuild.

Martyn T. Griffin

Login or register to post comments
matthieu

Joined: 2009-11-03
Posts: 4
Posted: Wed, 2009-11-04 19:50

Hi Martyn,

Thanks for your reply.

I only changed the value in the Theme Options so it's not the cause.
Maybe it's related to the move of the gallery directory after the install (the pictures were added after the move).
Any idea ?

Matthieu

Login or register to post comments
matthieu

Joined: 2009-11-03
Posts: 4
Posted: Wed, 2009-11-04 22:00

I found the root cause :
- the rebuild is done by the function rebuild_dirty_images
- at the beginning graphics::find_dirty_images_query return the list of image to rebuild
- then images are done 2 by 2 to graphics::generate($item);
- graphics::generate doesn't modify the 2 images because they match $item->is_album() and !$cover = $item->album_cover()
- so the images are still in the dirty_image list => the loop try to regenerate these 2 images indefinitely

I guess I have to report a bug.

Login or register to post comments