So I want to use the feature of the PHP add-on Imagick. I have confirmed the install and setup in the PHP.ini of my hosting company, and I'm succesful in building a test page with the sample code and loading the page by itself. However once I try intergrating the page or the code into a PHPRunner page I run into problems. From what I can tell it is centered around the this tag:
header("Content-type: image/png");
This changes depending on the type of image used and apparently there is no way to include this in the file or the snippet when injecting it into PHPRunner as you receive an error that reads:
Cannot modify header information - headers already sent by (output started at /home/content/81/11761981/html/include/phpfunctions.php:1124)
Here is the content of the test php file i created and if i load it by itself it works.
<?php
header("Content-type: image/png");
$image = new Imagick('client_sessions/UnEditied/download_b6efx2sk.png');
$image->blurImage(5,3);
echo $image;
?>
EDIT
Ok, after some further investigation I was able to find that it's not possible to have more than one content type on a page header. And then was able to use the test file without error by calingl it as the img source. Doing so resulted in the desired results, but now presents a different challenge. How does one make the process dynamic that so that one could use any image called and different image types?