pedrotroller / image-muffin
该软件包最新版本(v1.0.3)没有提供许可证信息。
v1.0.3
2018-10-29 17:04 UTC
Requires
- imagine/imagine: ~1.1.0
- symfony/console: ~3.0|~4.0
- symfony/finder: ~3.0|~4.0
Requires (Dev)
- pedrotroller/php-cs-custom-fixer: ~2.15
- phpspec/phpspec: ^5.1
This package is auto-updated.
Last update: 2024-09-19 02:08:54 UTC
README
此脚本将直接返回图片内容。
使用方法
vendor/bin/muffinizer [options]
选项
--landscape Will generate a landscape.
--portrait Will generate a portrait.
--width[=WIDTH] The desired width of the image.
--height[=HEIGHT] The desired height of the image.
--bmp Will generate a .bmp image.
--gif Will generate a .gif image.
--jpeg Will generate a .jpeg image.
--jpg Will generate a .jpg image (default).
--png Will generate a .png image.
--wbmp Will generate a .wbmp image.
--webp Will generate a .webp image.
--xbm Will generate a .xbm image.
--content Will return the content of the resulting image (default).
--base64 Will return the base64 of the resulting image.
-h, --help 显示此帮助信息 -q, --quiet 不输出任何信息 -V, --version 显示此应用程序版本 --ansi 强制ANSI输出 --no-ansi 禁用ANSI输出 -n, --no-interaction 不询问任何交互式问题 -v|vv|vvv, --verbose 增加消息的详细程度:1为常规输出,2为更详细的输出,3为调试
示例
生成风景图片
vendor/bin/muffinizer --landscape
生成指定大小的风景图片
vendor/bin/muffinizer --landscape --width 300
vendor/bin/muffinizer --landscape --height 300
生成肖像图片
vendor/bin/muffinizer --portrait
生成指定大小的肖像图片
vendor/bin/muffinizer --portrait --width 300
vendor/bin/muffinizer --portrait --height 300
生成指定宽度和高度的图片
vendor/bin/muffinizer --portrait --width 300 --height 300