get image from file ID

Permalink 1 user found helpful
Is there a way to get an image (thumbnail) from a file ID, not an image object?

Normally I just go:

$imgHelper = Loader::helper('image'); 
$image = $imgHelper->getThumbnail($fID, $width,$height);

But in this case I can only get the ID (file id?) of the image and not the image object...

View Replies: View Best Answer
bhspiers replied on at Permalink Best Answer Reply
$imgHelper = Loader::helper('image'); 
$fObj = File::getByID($fID);
$image = $imgHelper->getThumbnail($fObj,$width,$height);