is there any way to force Gallery3 to rebuild all thumbs and resizes?

tnt

Joined: 2006-10-24
Posts: 13
Posted: Thu, 2010-03-11 18:55

I've made some changes to my photos and I want to generate new thumbs and resizes.

I've tried with "Maintenance" -> "Maintenance", but I'm getting
"Rebuild Images... Updated: 0 images. Total: 0."
as Gallery3 states "All your photos are up to date".

I've tried to remove all old thumbs and resizes from "/var", but that left me without any images except fullsizes. Gallery3 would not generate new ones.

I've tried both ImageMagick and GD.

is there any way to force Gallery3 to rebuild all thumbs and resizes, or to make new if there (in "/var") are none?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Thu, 2010-03-11 21:20
Quote:
I've made some changes to my photos

How? Directly to the files in the var directry?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tnt

Joined: 2006-10-24
Posts: 13
Posted: Fri, 2010-03-12 00:20

yes. cropped some of them.

in gallery2 I would just run "Build all thumbnails/resizes" from "Maintenance" page, and everything would be ok.

any way to do something similar in gallery3 ?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Fri, 2010-03-12 00:27

not yet.

Search the forums for 'dirty' and you might find something.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Fri, 2010-03-12 16:45

What I do, as a workaround, is changing the resize & thumb sizes from: Admin -> Appearance -> Theme options and save, then returned them as they were and save again. After that, you can go to the maintenance page and rebuild them.

 
tnt

Joined: 2006-10-24
Posts: 13
Posted: Fri, 2010-03-12 20:29

changing sizes in theme's menu worked for me, too.

thx!

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Sat, 2010-03-13 18:40

If you are comfortable manipulating the database tables directly (IE: using phpMyAdmin),
there is are fields in the items table that holds a boolean value of true (1) or false (0). The field name contains the word "dirty". By setting them to true (1), when you use the maintenance option to rebuild the entries it will perform the service for all the entries flagged.

Martyn T. Griffin

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Sun, 2010-03-14 09:47

This is very useful info. Thanks!

 
oliver_at_ends
oliver_at_ends's picture

Joined: 2010-05-18
Posts: 18
Posted: Mon, 2010-05-24 12:18

Thank you, griffinmt, for your notes on rebuilding images. I recently needed to update all my resized images, and found your post very helpful.

I used a MySQL query something like the following to mark the records for all the photos in my database at once.

UPDATE items
SET resize_dirty = 1, thumb_dirty = 1
WHERE type = "photo"

I thought I'd post the query here in case someone else found it useful.

Oliver

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Mon, 2010-05-24 15:17

Why not develop a module to do this?
Modules are easy and think that this would be useful for others.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team