GithubHelp home page GithubHelp logo

xiaomac / oss-upload Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 8.0 1.44 MB

OSS Upload for Wordpress

Home Page: https://www.xiaomac.com/oss-upload.html

License: MIT License

PHP 97.37% JavaScript 2.63%
aliyun oss php upload wordpress

oss-upload's People

Contributors

xiaomac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oss-upload's Issues

启用插件后, 以前的资源文件全部404

非常感谢作者的插件.
我的网站启用插件前已经有了很多图片等资源文件. 启用插件后, 之前的资源文件host被强制替换成了插件中配置的OSS的访问域名.

请问插件是不兼容旧的资源文件吗? 是否提供了将原先的资源文件host转为OSS的host的功能?

使用webp格式的时候遇到的一点问题

直接在浏览器访问网站链接(https://blog.xgblack.cn/ )图片是可以转换为webp的(见图一),但是如果是通过点击页面上的“首页”选项,或者网站logo什么的(以跳转的方式返回网站首页)时,图片不会转为webp(见图二)。插件设置见图三
image
image
image

望添加传输加速节点支持

目前仅支持

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 会非常慢,经常出现上传失败情况。

为什么不能使用OSS定义的主题

很好的插件,可是我定义了使用:使用样式图片服务,并在阿里上设置了样式,但是写的文章里的所有图片链接还是全部调用-full这个样式。
包括文章列表中的略缩图也是调用-FULL这个样式。

这样就失去了加速的意义了。我不知道是我设置问题还是插件本身的问题。
原来以为是主题问题,更换了很多主题都是这种情况。

@xiaomac

插件的图片预设样式未包含 Favicon

使用的 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

oss插件和the7主题不兼容

the7主题会在wp-content/uploads目录下创建各种文件,开启oss插件后会导致the7主题样式丢失

the7在wp-content/uploads下创建这两个目录smile_fonts、the7-css,有没有办法排除上传这两个目录到oss

开启oss插件,the7主题会报错:“无法创建自定义.CSS文件。 为了提高您的网站性能,请检查是否创建了“.../wp-content/uploads/”文件夹,其CHMOD设置为755。”

建议支持使用 HTTPS 访问阿里云

在阿里云控制台中,如果给 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.