Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/www/domains/hppgallery_com/design/defaulttheme/tpl/pagelayouts/main.php on line 59

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/www/domains/hppgallery_com/design/defaulttheme/tpl/pagelayouts/main.php on line 59
Monday, August 21, 2017
 

Explains how to use dedicated php script for recreating different size thumbnails.

Since 380r there are new script located in bin/php/recreate_thumbnails.php. It's purpose is recreated image thumbnails it can be normal or small size thumbnails. This script is useful then making custom size thumbnails without re-uploading content. Script usage examples

If we want to recreate small size images thumbnails we execute this script like this:

php ./bin/php/recreate_thumbnails.php -s site_admin -t small

If we want to recreate normal size images thumbnails we execute this script like this:

php ./bin/php/recreate_thumbnails.php -s site_admin -t normal

If we want to recreate normal and small size images thumbnails we execute this script like this:

php ./bin/php/recreate_thumbnails.php -s site_admin -t both

There is also option to recreating images starting from picture ID. Let say we want recreate images starting from 500 picture ID.

php ./bin/php/recreate_thumbnails.php -s site_admin -t small -p 500

Thumbnails recreation by album also possible just pass album ID. It can be combined with all of above arguments.

php ./bin/php/recreate_thumbnails.php -s site_admin -t small -a 24

If you want to recreate single image you can pass image ID.

php ./bin/php/recreate_thumbnails.php -s site_admin -t both -id 275951

That's it.

Back »

Comments: 0

Leave a reply »

 
  • Leave a Reply
    Your gravatar
    Your Name
     
     
     
     
 
About HPPG

High performance photo gallery dedicated for large numbers of image storage.

Get in touch

Donate



Download