Page 1 of 1
It's possible to run the script for thumbs creation outside
Posted: 09 Mar 2010, 00:08
by I-FR70
First of all, I apologize for my bad english...
It's possible to run the script for thumbs creation outside the Joomla Backend?
I mean... I made a php hack that feeds automatically the
_phocagallery and
_phocagallery_categories tables, but I have manually to go to backend "phocagallery->Images" to creating thumbinails... and it's boring for me.
There is a way to do this calling a php file directly?
Thanks in advance.

Re: It's possible to run the script for thumbs creation outside
Posted: 09 Mar 2010, 11:27
by I-FR70
No suggestion?
Instead of, can I have a "tip-off" about the php file that makes the work?
So I can try to do the same thing outside Joomla...
In exchange I can give you a suggest for a future improvement...

:
Currently, if non-image files are present in phocagallery directories, the thumbs creation mechanism fails... to avoid this behaviour, you have to test each file before process it, using the command:
Code: Select all
if (exif_imagetype(<path&filename>) != FALSE)

Re: It's possible to run the script for thumbs creation outs
Posted: 09 Mar 2010, 19:44
by Jan
Hi, there is no such option. The Phoca Gallery uses the Joomla! framework, so it is not possible to run it outside the Joomla! As there are thousands of lines in the code, it is not easy to search it and paste it there

Re: It's possible to run the script for thumbs creation outs
Posted: 10 Mar 2010, 12:53
by I-FR70
Thanks for the answer.
OK, I'll try to do it by myself...

for safety's sake, can you confirm if the images loading facility (with default parameters) creates the "Thumbs" subfolder and, for each picture, 3 copies with different resolution... true?
Anyway I think that, even using Joomla framework, it's possible to call a php file directly... I'm using a backup component (JoomlaPack) and it's possible to call remotely a backup request simply writting the URL on browser.

Re: It's possible to run the script for thumbs creation outs
Posted: 17 Mar 2010, 16:14
by I-FR70
OK, done...

... no trivial job
