relative path of thumbnail

Permalink
How do I get the relative path of a thumbnail?
I'm trying to build a lightbox gallery and

$f->getThumbnailPath($level);

gives the absolute path...which is not correct.

Any ideas?

thanks

 
Realnet replied on at Permalink Reply
This should do it
$ih = Loader::helper('image');   
$thumbnail = $ih->getThumbnail($imageObject,thumbnailWidth,thumbnailHeight);
TheRealSean replied on at Permalink Reply
TheRealSean
To get the image object you can use this
$imageObject=File::getByID($fID);