原图:
https://hobi.oss-cn-shenzhen.aliyuncs.com/Content/Photo/20181212/X6Jf4Z981k6fcosdT0nlct81Lhv3U9U5.jpg
默认样式图:
https://hobi.oss-cn-shenzhen.aliyuncs.com/Content/Photo/20181212/X6Jf4Z981k6fcosdT0nlct81Lhv3U9U5.jpg?x-oss-process=style/pc
但是由于原图的单边长度超过了OSS的 4096 的限制。或者四边乘积超过了 4096*4096,使用默认的style/sheetname会报错
<Error>
<Code>BadRequest</Code>
<Message>Picture exceed the maximum allowable rotation range.</Message><RequestId>5C10B5964ABA212FB39FCEC6</RequestId>
<HostId>hobi.oss-cn-shenzhen.aliyuncs.com</HostId>
</Error>
要想自适应关闭,然后用 resize 处理图片,解决后的样式图:
https://hobi.oss-cn-shenzhen.aliyuncs.com/Content/Photo/20181212/X6Jf4Z981k6fcosdT0nlct81Lhv3U9U5.jpg?x-oss-process=image/auto-orient,0/resize,m_lfit,h_1000,w_1000,limit_1/sharpen,100/