It's possible to run the script for thumbs creation outside

Phoca Gallery - image gallery extension
I-FR70
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 08 Mar 2010, 23:54

It's possible to run the script for thumbs creation outside

Post 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. :P

There is a way to do this calling a php file directly?

Thanks in advance.

:)
I-FR70
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 08 Mar 2010, 23:54

Re: It's possible to run the script for thumbs creation outside

Post 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... :wink: :

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)
:)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: It's possible to run the script for thumbs creation outs

Post 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 :-(
If you find Phoca extensions useful, please support the project
I-FR70
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 08 Mar 2010, 23:54

Re: It's possible to run the script for thumbs creation outs

Post by I-FR70 »

Thanks for the answer.

OK, I'll try to do it by myself... :cry: :D 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.

:)
I-FR70
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 08 Mar 2010, 23:54

Re: It's possible to run the script for thumbs creation outs

Post by I-FR70 »

OK, done... 8) ... no trivial job :wink:

:)
Post Reply