Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阿里云压缩图片的宽度限制(最大宽度只支持4096) #98

Open
inoodle-Git opened this issue Jun 3, 2019 · 1 comment
Labels

Comments

@inoodle-Git
Copy link
Collaborator

wp5.2,深圳ECS,深圳OSS,启用服务器图片服务和图片样式,
BlockEditor中图片404无法显示,但是前台正常显示,链接相同。

@inoodle-Git
Copy link
Collaborator Author

inoodle-Git commented Jun 3, 2019

原因找出来了,wp5.2中的图形默认加载Large这个规格,我的设置
styleName:large,styleBody:image/resize,m_lfit,w_5000,h_3500,limit_1/auto-orient
w5000超出了阿里云压缩图片的宽度限制(最大宽度只支持4096),修改为h_3500就行了。

btw,默认的styleName:post-thumbnail,styleBody:image/resize,m_lfit,w_1568,h_9999,limit_1/auto-orient,0 styleName:full,styleBody:image/auto-orient,0这个里面h_9999也超出了阿里云的图片服务高度限制

@yiichou yiichou reopened this Jun 11, 2019
@yiichou yiichou changed the title BlockEditor中图片404无法显示 阿里云压缩图片的宽度限制(最大宽度只支持4096) Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants