Amazon web services 使用CloudFront签名URL使用Imagemagick编码图像
尝试使用cloudfront URL对图像进行编码。我可以用ffmpeg实现这一点,但当我运行以下命令时,ImageMagick就没那么幸运了:Amazon web services 使用CloudFront签名URL使用Imagemagick编码图像,amazon-web-services,imagemagick,Amazon Web Services,Imagemagick,尝试使用cloudfront URL对图像进行编码。我可以用ffmpeg实现这一点,但当我运行以下命令时,ImageMagick就没那么幸运了: convert "myactualcloudfrontsignedurl" -resize 200x200 /home/filename.jpg 当我运行它时,会出现以下错误: convert: no decode delegate for this image format `/tmp/magick-88997pPOU-wM5ReVq' @ err
convert "myactualcloudfrontsignedurl" -resize 200x200 /home/filename.jpg
当我运行它时,会出现以下错误:
convert: no decode delegate for this image format `/tmp/magick-88997pPOU-wM5ReVq' @ error/svg.c/ReadSVGImage/3007.
convert: no images defined `/home/filename.jpg' @ error/convert.c/ConvertImageCommand/325
我尝试对cloudfront url进行url编码,但是url太长了
在更新ImageMagick权限以允许读取https文件后,我能够使用以下命令获得一个带单引号的常规图像编码:
convert 'https://example.com/photos/104827/cat-pet-animal-domestic-104827.jpeg?cat=1' -resize 300x200 cat.jpg
但是,当我在cloudfront命令中使用单引号时,这并没有什么区别。您确定可以将URL传递给ImageMagick吗?我在这本书中看不到任何这样的例子。如果你只是在互联网上使用一个普通的URL来访问一个图片,它能工作吗?是的,我能让它在一个普通的URL上工作。更新问题。ImageMagick是否查看响应中的内容类型?