xiaomac / oss-upload Goto Github PK
View Code? Open in Web Editor NEWOSS Upload for Wordpress
Home Page: https://www.xiaomac.com/oss-upload.html
License: MIT License
OSS Upload for Wordpress
Home Page: https://www.xiaomac.com/oss-upload.html
License: MIT License
To avoid conflicting, can we add a filter so that it does not interfere with other actions just like plugin and theme uploads?
Line 39 in 5382454
Thanks!
非常感谢作者的插件.
我的网站启用插件前已经有了很多图片等资源文件. 启用插件后, 之前的资源文件host被强制替换成了插件中配置的OSS的访问域名.
请问插件是不兼容旧的资源文件吗? 是否提供了将原先的资源文件host转为OSS的host的功能?
阿里云oss图片处理设置好样式过后,怎么在 OSS Upload 这边设置
直接在浏览器访问网站链接(https://blog.xgblack.cn/ )图片是可以转换为webp的(见图一),但是如果是通过点击页面上的“首页”选项,或者网站logo什么的(以跳转的方式返回网站首页)时,图片不会转为webp(见图二)。插件设置见图三
目前仅支持
oss-cn-hangzhou.aliyuncs.com
oss-cn-shenzhen.aliyuncs.com
oss-cn-shanghai.aliyuncs.com
[...]
oss-cn-hangzhou-internal.aliyuncs.com
[BUCKET].oss-accelerate.aliyuncs.com 的 endpoint 目前还是暂不支持的,海外 VPS 上传到杭州 oss 会非常慢,经常出现上传失败情况。
插件版本:4.8.9
wp版本:5.3.2
古腾堡编辑器,勾选了自动保存远程图片到 OSS。
问题:文章中插入外部图片,但没有上传至OSS,依然是外链
很好的插件,可是我定义了使用:使用样式图片服务,并在阿里上设置了样式,但是写的文章里的所有图片链接还是全部调用-full这个样式。
包括文章列表中的略缩图也是调用-FULL这个样式。
这样就失去了加速的意义了。我不知道是我设置问题还是插件本身的问题。
原来以为是主题问题,更换了很多主题都是这种情况。
使用的 Twenty Twenty 主题,站点的 ico 也使用了 Aliyun OSS。GTMetrix 跑分测试提示了404 错误(估计会原图加载,未考察)我是手动在 AliyunOSS 面板补充了以下规格的样式。
site_icon-192 ==> image/resize,w_192,quality_40
site_icon-64 ==> image/resize,w_64,quality_40
site_icon-32 ==> image/resize,w_32,quality_40
插件支持uploads目录下所有文件吗?比如js,css 。我觉得设置选项可以设置是否支持js,css文件。
我看了你的文件重命名方法使用了md5,这样无法保证文件名唯一,可能会造成文件替换。希望换成uuid
不好意思,冒昧的问一下2个问题。
如果不方便的话,帮忙指出可能导致的原因也可
the7主题会在wp-content/uploads目录下创建各种文件,开启oss插件后会导致the7主题样式丢失
the7在wp-content/uploads下创建这两个目录smile_fonts、the7-css,有没有办法排除上传这两个目录到oss
开启oss插件,the7主题会报错:“无法创建自定义.CSS文件。 为了提高您的网站性能,请检查是否创建了“.../wp-content/uploads/”文件夹,其CHMOD设置为755。”
在阿里云控制台中,如果给 Assess Token 用户的授权条件中增加仅允许 HTTPS 访问时,这个插件的 测试一下
按钮会提示错误,去掉这个限制后正常。
因此判断你在访问阿里云时使用了 http 而非 https,建议使用 https 访问。
应该不算是 bug,用 OSS 样式的图片服务,OSS Upload 的缩略图质量
是无效的,需要自行在 OSS 图片样式添加 /quality,q_80
或 /quality,Q_80
,或许在设置项添加说明:仅在参数样式的图片服务下有效会比较清楚
(我是从 Aliyun OSS 插件转过来的,所以默认使用 OSS 的 sytle service,但这个图片质量功能无效稍微困扰了我一下),顺便附上我在 Aliyun OSS 插件自动生成的 OSS 样式模板,在OSS 数据处理
- 图片处理
- 导入样式
即可。
OSS 图片样式设置模板.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.