图像干预 Amazon Cloudfront:无法从给定的二进制数据初始化

Image Intervention Amazon Cloudfront: Unable to init from given binary data

我无法通过图像干预读取从亚马逊 s3/CloudFront 提供的图像。我不断收到 "Unable to init from given binary data"

<?php

$image = \Intervention\Image\Facades\Image::make('https://s3-us-west-2.amazonaws.com/agentimpress-staging-cdn/img/uploads/agents/1/user-pic.jpg');

$image = \Intervention\Image\Facades\Image::make('http://cdn.v2.agentimpress.me/img/uploads/agents/1/user-pic.jpg');

我认为这可能是权限问题,但我可以使用网络浏览器访问这两张图片。我还可以使用图像干预库 "make" 与本地参考相同的图像。在我测试过的两个环境中,我还 allow_url_fopen 转为 On。有什么建议么?谢谢

看起来与内容有关 headers...