Hi Khaled,
I use:
$this->DirectoryStructure->basepath = WWW_ROOT.IMAGES_URL
.$this->galleryPath;
$this->ThumbnailGenerator->thumbnailGenerator();
$images = $this->DirectoryStructure->ListDir();
$data = '';
foreach($images as $img) {
if(substr($img,0,6)=='_thmb_')
continue;
elseif($this->ThumbnailGenerator->makeThumbFile(WWW_ROOT.IMAGES_URL.$this->galleryPath.$gal.$img,WWW_ROOT.IMAGES_URL.$this->galleryPath.$gal.'_thmb_'.$img))
{
$data .= 'Ready: '.$img.'<br/>';
}
}
to parse thru a directory and generate thumbnails. You'll need to
download the DirectoryStructure component too.
Hope that helps!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---