evanshunt / silverstripe-remote-images

一个可以将远程站点的图片拉取到本地显示的 Silverstripe 模块

安装: 131

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:silverstripe-vendormodule

v0.0.3 2024-08-16 17:40 UTC

This package is auto-updated.

Last update: 2024-09-16 17:54:49 UTC


README

模块,用于在将站点复制到本地环境时使用远程版本的图片文件。受 SilverStripe 3 的 Silverstripe Asset Proxy 启发。

安装

composer require evanshunt/silverstripe-remote-images

使用方法

在您的 .env 文件中设置远程主机

REMOTE_IMAGES_PROXY_HOST=http://example.com

已知问题

文件被本地下载,但并未完全被 CMS 识别,导致一些图片未被裁剪,并在资产管理区域出现问题。