Hi Community,
how can I recreate thumbnails from command line directly on the server? After we moved our Gallery2 2.2.6 to a new server and updraded it to version 2.3.1 we got some broken thumbnails. The gallery is very large, round about 400 GB or more than 100.000 pictures. If we are using the 'recreate thumnails' tool out of the web frontend under maintenance, the browser become slower and slower until it crashs totally. Is there a possibility to run this task directly on the server from a terminal? We have no X-windows installed on the server so we can't use a browser directly on the server.
Otherwise maybe there is a possibility to increase the warranted RAM of this maintenance task, because we can see in top right corner the used RAM and obviously the warranted RAM 128M. Maybe it could help to increase this limit somewhere.
Thx in advance & bye Tom
Posts: 8339
you can rebuild thumbnails on a per album basis.
Edit Album -> Album Tab
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 17
Hi,
yes I know this way to recreate thumbs on single albums but I would like to avoid these workaround because I can't walk trough the whole gallery to search for broken thumbnails, so I have to instruct every single user what to do if they find a broken thumbnail. Is there no other way outside the webfrontend?
Thx & Bye Tom
Posts: 8339
gallery has to read from the DB to find which entities to rebuild.
no matter how you decide to do it, in whatever language, it will always be on the server and use the servers memory and will have to read from the DB.
you can try and increase the memory limit available to php by adding:
@ini_set("memory_limit","256M")
to config.php and use ImageMagick as your toolkit.
also try breaking it down into a smaller set number of albums/sub-albums
my site has 5 major categories(albums) so I could build from just those 5 and all subs from the 5
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2