Page 1 of 1

Opening a JPEG from Amazon S3

Posted: 2009-08-25T08:32:30-07:00
by mcousins
I was wondering if anybody has done any Amazon S3 work here? I have a JPEG on Amazon that has a restricted ACL for security. I can get a copy of it in memory after connecting, but can you create an Imagick from a binary variable rather than a filename? The constructor documentation only shows instantiation with a filename.

Here's an example of what I want to do:

Code: Select all

$s3 = new S3("access key", "secret key");
$binaryjpegfromamazon = $s3::getObject($bucket, $uri);
$image = new Imagick($binaryjpegfromamazon );