Pages: 1 2
Hi,
so I was wondering how other piwigo users do the following:
I'm always generating multiple size images after uploading new pictures, in order to fasten things up for visitors. Otherwise it would only be done when a visitor, well...visits it, which could be quite slow with lots of new images if I understood it right.
My trouble now is:
my site hoster is complaining when I do it (arvixe.com with a basic package).
they are complaining that the i.php is abusing cpu%
And since this batch process takes a few hours with 1000 or more pictures it will get noticed =)
Apprearently there is no willingness to limit the i.php process to a set amount of %, soo how do you guys handle it ? (well besides the obvious and not doing the image generating in the first place :P )
cheers
Kyp
Offline
Hi kyp_,
kyp_ wrote:
I'm always generating multiple size images after uploading new pictures [...]
Only generate size M. This is the default size. Thumbnail size will be generated from M and it is "much" faster than generating from Original.
kyp_ wrote:
my site hoster is complaining when I do it (arvixe.com with a basic package).
they are complaining that the i.php is abusing cpu%
Thank you for reporting this problem. In addition to Piwigo.com, Arvixe is one of the 2 hosting providers we recommend on Piwigo.org hosting page. I'm going to ask them to give a detailed explanation about this "abusing CPU".
Offline
Thx for the info.
I've generated Sq, Th, M, L, XL so "Automatic Size" plugin could choose better for different screen resolutions. (at least thats what I was hoping for)
Arivxe Support asked me to remove i.php from the webspace. I'm guessing it's essential, so.... I'm trying to convince them I will not do any generate image's anymore manually but let the server do it in the background when a visitor views it.
cheers
Kyp
Offline
I already had issues with my own hoster : one single person was visiting a private gallery and was generating many pictures, and i.php was baned (set the chmod to 000)
one day, 3hr, one user, I never was able to get back i.php so I created a.php a rename of the same file and also changed the unique line of code which was referring to i.php: that worked well ^^
Offline
flop25 wrote:
[...] I created a.php a rename of the same file and also changed the unique line of code which was referring to i.php: that worked well ^^
If we need such tricks on Arvixe, it won't be listed on Piwigo.org "hosting" page anymore, of course. I've sent them an email, I hope they will give more explanations and solution.
Offline
Had the same idea of just renaming it and renaming the appropriate code ;)
And thx for the insights so far.
cheers
Kyp
Last edited by kyp_ (2013-06-29 23:40:58)
Offline
Just a note on hosting provider - I am hosting with the DreamHost, and I also prefer to generate multiple size images manually. They seem to be happy with me - never heard any complains.
On a practical note - I am using Stripped-and-columns for desktops. Within this particular theme the choice of the viewing size is unavailable for the viewers. So I guess I need to generate the XL for desktops and M for mobile devices. Is there anything else that may be used automatically based on browser settings?
Offline
Hello
The config of stripped is applied to Stripped and columns too
Offline
Yes, thank you. I am using XL as a default size. But after I removed other sizes, I was getting into trouble with iPhone and iPad. I believe I had to restore the M size, so the images could be retrieved to be used with the mobile theme. Am I right here?
Offline
There is an option in the local config for the default size on picture page, for standard themes, and its default value is medium
Offline
Thank you, now it makes sense to me.
I have also asked in another thread, but hope you don't mind me mentioning it here since it is relevant - how can I get a URL of a particular image resized to M and watermarked? I'd like to use it in blogs etc.
Offline
for wordpress you have a wp plugin
generally you can use mypiwigo/_data/i/galleries/myalbum/filename-me.jpg
Offline
It works! Thank you.
Offline
I seem to be having the same issue but I'm not sure I understand the solution
my host is Hostmonster and they are complaining about the number of files I have.
each image I upload generates four. me, sm, sq, th
what do I need to change so that these are not all generated?
Offline
A thread from 2013 and I'm encountering the same problem... :-(
Offline
Pages: 1 2