I'm using the following code to display an image which is stored on my webspace:
header('Content-Type: image/png');
$filePath = JPATH_SITE.'/images/powered_by.png';
$image = new Imagick("{$filePath}[0]"); // [0] means "first page"
$image->setImageFormat('png');
echo $image;
exit;
This happens in a modal-view of my Joomla-Component. The result is the following:
What can I do to display the image I wanted to display?