Search…

X3 Photo Gallery Support Forums

Search…
 
julius_s
Topic Author
Posts: 4
Joined: 26 Oct 2009, 11:03

Recreate Thumbnails from within another PHP-Application

26 Oct 2009, 11:09

Hi,

I need to execute the thumbnail recreation process from within another PHP application, I'm running imagevue in. I already read the possibility of requesting an URL within the admin area, but to get access the application would have to be logged in.

Is there a way to access the functions of the PHP script directly? Or could you maybe just tell me what method exactly recreates the thumbnails?

It's really very important

Thank you
 
User avatar
McArrow
Imagevue Developer
Posts: 12
Joined: 29 Jun 2008, 14:50

30 Oct 2009, 13:30

Hmm, I don't recommend you to recreate all thumbnails in 1 process 'cause this will take a lot of resourses.

To recreate thumbnail for a given file you can use something like:
Code
$file = ivFSItem::create('/full/path/to/file.ext');
$file->generateThumb();
 
julius_s
Topic Author
Posts: 4
Joined: 26 Oct 2009, 11:03

02 Nov 2009, 16:20

Thank you! That worked out perfectly.

Just for others looking for a solution, you've got to write this code first
Code
define('IV_PATH', '<PATH TO IMAGEVUE>admin/');
include_once('<PATH TO IMAGEVUE>common.inc.php');
include_once('<PATH TO IMAGEVUE>admin/config.inc.php');