定制 srwiez/php-svg-ps-converter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

srwiez/php-svg-ps-converter

最新稳定版本:v1.3.0

Composer 安装命令:

composer require srwiez/php-svg-ps-converter

包简介

SVG (Portable and Secure) converter for BIMI compliance

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require GitHub Workflow Status (with event)

SVG (Portable and Secure) converter for BIMI compliance.

Read more from bimi group and the RFC

🧪 If you just want to convert your SVG in a nice ui, you can use the online version of the converter!

You can also checkout the command line version of this project.

🚀 Installation

composer require srwiez/php-svg-ps-converter

📚 Usage

Example of identifying issues and converting the SVG:

$svg_converter = new SVGTinyPS(getSVGContent($svg_content));
$issues = $svg_converter->identifyIssues();
$svg_fixed= $svg_converter->convert();

Some issues cannot be fixed automatically, you can get them by rerunning identifyIssues()

Namely, the issues that cannot be fixed are:

  • The SVG contains an image
  • The SVG is not square
  • The SVG size > 32kb
$svg_converter = new SVGTinyPS(getSVGContent($svg_fixed));
$issues_cannot_be_fixed = $svg_converter->identifyIssues();

👥 Credits

SVGTinyPS was created by Eser DENIZ.

Inspired by the official scripts of authindicators/svg-ps-converters

Thanks to gilbarbara/logos for the logos used in the tests.

📝 License

SVGTinyPS PHP is licensed under the MIT License. See LICENSE for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-28