" recreate thumbnails " not working at all. Please Help !

cwayne

Joined: 2004-03-07
Posts: 32
Posted: Thu, 2005-09-15 10:20

Hi,

I just migrated my Gallery from 1.5 to G2.
Everything seems to be working smoothly except thumbnails.

I tried to rebuild the thumbnails in a album but nothing changed.
Here's what I did.

(1) Admin --> Square Thumbnails
change from "crop images to square" to "fit images to square"

(2) go to the album and "edit album"
check the "Recreate thumbnails" and Save

Are those correct steps in rebuilding the thumbnails?
For all the thumbnails in that album are still in the same "crop to square" state.
None changed.
How can I solve this?

Thanks in advance.

Wayne

 
cwayne

Joined: 2004-03-07
Posts: 32
Posted: Thu, 2005-09-15 12:29

Just found out that the thumbnails were actually changed already but not displayed properly.

After accidentally entering the "edit image" option for some images,
(actually doing nothing but simply enter the option and out to the album)
those images (performed with "edit image" option ones) were correctly displayed with the new thumbnail format I've just set.

This looks like a cache issue to me, therefore, I tried to delete the database cache and restart my apache.
However, that makes no difference.

Is it that there're cache files I need to delete to make those thumbnail change effective ?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 12:41

maybe your browser cache? you can clear that too. e.g. in internet explorer or firefox.

still, that's strange. since when G2 changes a thumbnails, it changes its serial number too. thus there shouldn't be any caching issues.

 
cwayne

Joined: 2004-03-07
Posts: 32
Posted: Thu, 2005-09-15 13:06

Thanks a lot. I think you're quick right.

After trying that both on IE and firefox, it seems that it's the browser cache that's causing the problem.

Those new thumbnails just couldn't be displayed properly until I clear up those browser cache files.

However, if there's already mechanism in gallery avoiding this kind of caching problem, will that be possible that I might miss some particular setting which leads to this issue ?

Nevertheless, thanks a lot again for the great help.

Cheers.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 13:15

nope.
you'll have to delete your existing thumbnails before running the maintenance task.

/lib/support/ -> cache -> delete derivatives

 
cwayne

Joined: 2004-03-07
Posts: 32
Posted: Thu, 2005-09-15 13:31

oops.

what do you mean by "running the maintenance task" ?

is that I need to run the "rebuild all thumbnails and resize" function in the Admin - Maintenance for each thumbnail change of an album ?

I thought that all I have to do is just

(1) set the square thumbnail format in admin and
(2) check the "recreate thumbnail" in a particular album and save.

so .. I need to perform the "rebuild all.." ?
won't that consume too many resources of the system ?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 14:21

the thing is this:
if you change the square thumbnail settings or disable the square thumbnails, you just change the settings for future albums / photos, not for your existing ones.
if you want to change your existing thumbnails, you have to delete them first.

g2 will then automatically rebuild the thumbnails when required.
you can rebuild all at once if you want with the site admin maintenance task.
some people prefer doing this all at once because then they control exactly when the system load goes up.
the disadvantage of not doing all at once is that the users that visit your album pages as the first visitors have to wait a little longer because it will generate the thumbnails on the fly for them and then store the thumbnails on the disk for future visitors.

 
cwayne

Joined: 2004-03-07
Posts: 32
Posted: Thu, 2005-09-15 14:32

Thanks a lot for the specific explanation.
That sent me a clearer picture of how the system works.
Cheers!

However, will there be functions that help delete and recreate only specific albums in the near future ?
I believe that'll help a lot on avoiding the risk of long rebuilding time.

Nevertheless, thanks again for the help :)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 15:55

please file a feature request such that this doesn't get forgotten.
http://sf.net/projects/gallery/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 15:55

please file a feature request such that this doesn't get forgotten.
http://sf.net/projects/gallery/

 
chingching2

Joined: 2005-02-27
Posts: 20
Posted: Sun, 2007-03-25 01:22

I tried this lib/support, I got:

Quote:
Successfully deleted page cache
Deleting dir: /home/mace/public_html/gallery/g2data/cache/entity
Unable to remove directory /home/mace/public_html/gallery/g2data/cache/entity/6
Unable to remove directory /home/mace/public_html/gallery/g2data/cache/entity
Unable to recreate dir: /home/mace/public_html/gallery/g2data/cache/entity
Deleting dir: /home/mace/public_html/gallery/g2data/cache/module
Recreating dir: /home/mace/public_html/gallery/g2data/cache/module
Deleting dir: /home/mace/public_html/gallery/g2data/cache/theme
Recreating dir: /home/mace/public_html/gallery/g2data/cache/theme
Deleting dir: /home/mace/public_html/gallery/g2data/smarty/templates_c
Recreating dir: /home/mace/public_html/gallery/g2data/smarty/templates_c
Deleting dir: /home/mace/public_html/gallery/g2data/tmp
Recreating dir: /home/mace/public_html/gallery/g2data/tmp
Deleting dir: /home/mace/public_html/gallery/g2data/cache/derivative
Unable to remove directory /home/mace/public_html/gallery/g2data/cache/derivative
Unable to recreate dir: /home/mace/public_html/gallery/g2data/cache/derivative

Will it be safe for me (or can I) to manually delete
..... /home/mace/public_html/gallery/g2data/cache/entity/6 ?????

Thank you

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-03-25 01:29