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
Posts: 32
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 ?
Posts: 32509
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.
Posts: 32
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.
Posts: 32509
nope.
you'll have to delete your existing thumbnails before running the maintenance task.
/lib/support/ -> cache -> delete derivatives
Posts: 32
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 ?
Posts: 32509
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.
Posts: 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
Posts: 32509
please file a feature request such that this doesn't get forgotten.
http://sf.net/projects/gallery/
Posts: 32509
please file a feature request such that this doesn't get forgotten.
http://sf.net/projects/gallery/
Posts: 20
I tried this lib/support, I got:
Will it be safe for me (or can I) to manually delete
..... /home/mace/public_html/gallery/g2data/cache/entity/6 ?????
Thank you
Posts: 32509
yes.
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage