承接 fromholdio/silverstripe-svgenius 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fromholdio/silverstripe-svgenius

最新稳定版本:2.0.0

Composer 安装命令:

composer require fromholdio/silverstripe-svgenius

包简介

First-class SVG handling for Silverstripe CMS & front-end

README 文档

README

First-class SVG handling for Silverstripe CMS & front-end.

Requires Silverstripe 6+.

  • SVGs can be uploaded into Asset Admin just like images
  • Thumbnail of SVG is displayed on Asset Admin grid view
  • Asset CMS fields adjusted to hide focuspoint field for SVGs when jonom/focuspoint is installed
  • Retrieve height, width, orientation, and apply resizing by ratio, width or height using existing manipulation methods (Fit, FitMax, ScaleWidth, ScaleMaxWidth, ScaleHeight, ScaleMaxHeight)
  • Can embed in front-end as an tag, or embed the svg file contents
  • SVG contents are passed through santisation library enshrined\svgSanitize

Note, this behaviour is not included out-of-the-box in Silverstripe due to the security risks inherent with user-supplied SVG files. Per above, this module does process SVGs through a sanitisation process, but this needs to be combined with your own strategies and in consideration of your use case to reach acceptable security.

统计信息

  • 总下载量: 97
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-01-06