I was about to simply say "no", but then I thought I would double-check the code and consider if there were any other possibilities.
The imageWithPath()
method utilizes some helper methods in other classes to decode the image that is referenced by the $filePath
parameter. The very first thing each of these helper methods does is open the $filePath
using fopen()
.
So what that means is that you can pass in any kind of resource to the imageWithPath()
method that is supported by your PHP installation.
Generally speaking this means files and URLs, but since PHP 5.2 it also includes the data://
wrapper. I haven't used this myself (I've been writing out temp files then passing them to imageWithPath()
for years), but according to the man pages it might just enable you to pass in the modified data without having to save it to a file first.
More info: http://php.net/manual/en/wrappers.data.php
Please let us all know if you get something working using this method. :-)