Page 1 of 1

Recreate Thumbnails from within another PHP-Application

Posted: 26 Oct 2009, 11:09
by julius_s
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

Posted: 30 Oct 2009, 13:30
by McArrow
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();

Posted: 02 Nov 2009, 16:20
by julius_s
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');