Is it possible to get thumbnail url by fID?

Permalink
Hello, I noticed that concrete5 creates thumbnail for each picture I upload, so I'm wondering if it's possible to get thumbnail url by image fID?

NamelessHero
 
hutman replied on at Permalink Best Answer Reply
hutman
You should be able to do this

$im = Loader::helper(‘image’);
$file = File::getByID($fID)
$thumb = $im->getThumbnail($file, $width, $height);
<img src="<?php echo $thumb->src; ?>" width="<?php echo $thumb->width; ?>" height="<?php echo $thumb->height; ?>" />
NamelessHero replied on at Permalink Reply
NamelessHero
Thanks a lot man, it worked!