Announcement

#1 2013-07-24 22:52:14

mitch
Guest

Creating multiple image sizes from commandline

I usually upload large sized images into piwigo (ftp into /galleries/...) and then creating smaller images using the batch manager. It happens, that my vserver fails since the images are really large. Is there a way to trigger the image creation from commandline like 'php script.php filename.png'?

 

#2 2013-07-24 23:04:27

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Creating multiple image sizes from commandline

knowing the internal filename (/upload/2013/06/52/20130615000223-7225ce9f.jpg for instance)
you can do automatic queries to i.php for whatever size you want

(i.php?/upload/2013/06/52/20130615000223-7225ce9f-me.jpg for medium for instance)

look a _data/i directory to know the suffixes used

Offline

 

#3 2013-07-26 07:11:32

mitch
Guest

Re: Creating multiple image sizes from commandline

Thanks a lot. I will have a look at this.

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact