I\'m using Imagick lib to do some modifications to original image. Then I\'d like to output it directly to browser without saving. Is there a way to do that?
I tried
If you're using HHVM it'll throw a fatal exception if you just try and echo the Imagick object so you'll need to call getimageblob();
$imagick = new Imagick('my-image.jpg'); header('Content-Type: image/' . $imagick->getImageFormat()); echo $imagick->getimageblob();