-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thumbnail creation script #2
Comments
Hello, I think I have the same problem as you. I added a lot of photos and I got errors all the time. Also I'm wondering why the nano_photos_provider2.php copies all images to the thumdnail folder too. When I it local sometimes it works but when I copy it to my webspace it will be crashed all the time. Maybe 4 or 5 photos works but not more. how to the thumbnailcreator? only add the two thins to the cfg does not work. Also I'm wondering how should work because you have to tell the nano_photos_provider2.php to use script right? Could someone help to get it work? Cheers |
Hi Imox I run the script as a cronjob every 15 minutes independent from the photos_provider2 . Like this, I am sure that lates 15minutes after the last upload the thumbnails are created. just add the following line to your etc/crontab : */15 * * * * user php "path to thumbnailcreator.php" >/dev/null 2>&1 Hope it works out like this. Paescsuper |
Hi Paescsuper, thanks for the instructions but I mean how to use the script. I put it in the same folder "nano_photos_provider2" where also the nano_photos_provider2.cfg and nano_photos_provider2.php located and run the script but I got errors:
Maybe could you exactly explain me how do you use it? Thanks a lot |
Hi Imox I don‘t have access to the script now, but looks like theres an error in the thumbnailscript in line 13. Probably a path you‘ll need to adjust? Did you anmend the settings as descibet above? Cheers paescsuper |
Hi! I'm migrating my gallery from flickr to webhosting space and I runned into this issue. It seems, that webhosting is too slow to generate thumbnails on-the-fly. I would like to run this script but first there was issue with "auto" width (non-number on line 52) which I solved be setting it to 200 too. Is there anything new about this issue? Otherwise, provider2 seems to be rather limited in use. Thanks! |
Are there any plans to add this script to the distribution or add some command line functionality to nano_photos_provider2? |
Update README.md
An easy workaround to this is to add |
Hi Kris
after having timeout issues with thumbnail creation after uploading many pictures I added the following script to the nano_photo_provider: thumbnailcreator.php.zip
It based on your plugin and largely uses the nano_photos_provider2.cfg. It can be run via crontab at any intervall.
It only need two more settings in the nano_photos_provider2.cfg:
[thumbnails]
thumbnailHeight="200"
thumbnailWidth="auto"
Feel free to include the script in the Photo_provider if you find this useful.
The text was updated successfully, but these errors were encountered: