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
You just need to echo your imagick object:
$img = new Imagick($file); header('Content-Type: image/'.$img->getImageFormat()); echo $img;