Unfortunately such functionality is not supported by some of the "platforms". I am talking about direct browser output. I could add such a method, but it will work just as you said - it will first save the image to a temporary folder, set the correct HTTP headers (to match the type of the image file) and then feed it to the browser.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-10-08
I am not familiar with all the "platforms" you are supporting with this, as I do all my work in GD. I would assume that the need to write to disk would only be applicable to the "platforms" that didnt support outputting the image data directly...
There are times when I need to manipulate an image, but not save the output to drive, just show it in the browser..
could you add Asido_Image::Display()
Thanks. This looks like a great tool.
Unfortunately such functionality is not supported by some of the "platforms". I am talking about direct browser output. I could add such a method, but it will work just as you said - it will first save the image to a temporary folder, set the correct HTTP headers (to match the type of the image file) and then feed it to the browser.
I am not familiar with all the "platforms" you are supporting with this, as I do all my work in GD. I would assume that the need to write to disk would only be applicable to the "platforms" that didnt support outputting the image data directly...
Header("Content-type: image/jpeg");
imagejpeg($imagedata,'',$quality);
It would also be good to have the ability to pass the raw image data out of the Asido environment so further custom manipulation...
I'll see what I can do about it