Hi all,
is it possible, to start thumbnail create process from a shell? And maybe more than one paralell thread? I have to do lot of creation at one time, and at the moment I have to spend 2 seconds per image.
Best regards
Marcel
Thumbnail creation from shell possible?
-
- Phoca Enthusiast
- Posts: 79
- Joined: 22 Apr 2016, 12:03
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Thumbnail creation from shell possible?
Hi, for now there is no such option, but you can run it e.g. on your PC - on localhost - create all the thumbnails and then copy all the images include their thumbnails to your server.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 47
- Joined: 11 Nov 2013, 20:15
Re: Thumbnail creation from shell possible?
Hi Jan,
I know, but that's just what I want to avoid, because there are thousands of images in the site and every week I've 300/400 new images.
P.S. I don't receive by mail the notification of reply at all my post, I've try change my address in the profile but I can't. Do you know why?
I know, but that's just what I want to avoid, because there are thousands of images in the site and every week I've 300/400 new images.
P.S. I don't receive by mail the notification of reply at all my post, I've try change my address in the profile but I can't. Do you know why?
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Thumbnail creation from shell possible?
Hi, hmm, no idea, testing now the mail function, seems it works OK here
Ok, but what is the problem to prepare the images on your PC and upload them to your server?
Jan
Ok, but what is the problem to prepare the images on your PC and upload them to your server?
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 79
- Joined: 22 Apr 2016, 12:03
Re: Thumbnail creation from shell possible?
It's not so easy, like doing nothing :)
And I have to upload file fourth. Maybe I have to try scripting something at the Webserver....
And I have to upload file fourth. Maybe I have to try scripting something at the Webserver....
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Thumbnail creation from shell possible?
Yes, unfortunately, I cannot give any clue advice there, as I didn't test to run some script from a shell. Everything I build, is designed for using in browser - include admministration, etc. (even for my self, when I use php for specific tasks on my PC, I do it for browser use).
The problem is, now, the class for creating thumbnails is linked to all the Joomla! system, so running it through shell will be problematic - I think, for this new script needs to be written
The problem is, now, the class for creating thumbnails is linked to all the Joomla! system, so running it through shell will be problematic - I think, for this new script needs to be written
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 79
- Joined: 22 Apr 2016, 12:03
Re: Thumbnail creation from shell possible?
Which class do you use? I thought about using ImageMagick? Now I have to search a free time slot :)
I only don`t want to spend time for a function, that maybe already exists.
Thank you!
I only don`t want to spend time for a function, that maybe already exists.
Thank you!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Thumbnail creation from shell possible?
Hi, yes, I have made specific imagemagick function (based on different code, guides and experiences by different authors):
administrator\components\com_phocagallery\libraries\phocagallery\image\imagemagic.php
PhocaGalleryImageMagic::imageMagic()
But for writing files on the server, or checking them, etc., it uses Joomla! framwork, so all this needs to be modified (even there are different options and parameters - how to write files - without FTP, with FTP, directly or store them with help of ob_get_contents(), etc.)
Jan
administrator\components\com_phocagallery\libraries\phocagallery\image\imagemagic.php
PhocaGalleryImageMagic::imageMagic()
But for writing files on the server, or checking them, etc., it uses Joomla! framwork, so all this needs to be modified (even there are different options and parameters - how to write files - without FTP, with FTP, directly or store them with help of ob_get_contents(), etc.)
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 79
- Joined: 22 Apr 2016, 12:03
Re: Thumbnail creation from shell possible?
Hi Jan,
this is more assistance, I have expected! So you use imagemagick too.
My Idea is, to do complete upload by FTP, using multi adding within PhocaGallery, but create the thumbnails with a shell script on the webserver. At some days I add > 5000 pictures in lot of subfolders. I hope, doing creation by shell is going much faster.
Thanks a lot.
Marcel
this is more assistance, I have expected! So you use imagemagick too.
My Idea is, to do complete upload by FTP, using multi adding within PhocaGallery, but create the thumbnails with a shell script on the webserver. At some days I add > 5000 pictures in lot of subfolders. I hope, doing creation by shell is going much faster.
Thanks a lot.
Marcel
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Thumbnail creation from shell possible?
Ok
If you find Phoca extensions useful, please support the project