pedrotroller / image-muffin
Installs: 2 649
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
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-12-19 02:46:41 UTC
README
This script will return the content of the image directly.
Usage
vendor/bin/muffinizer [options]
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 Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Examples
Generate a landscape image
vendor/bin/muffinizer --landscape
Generate a landscape image with a specific size
vendor/bin/muffinizer --landscape --width 300
vendor/bin/muffinizer --landscape --height 300
Generate a portrait image
vendor/bin/muffinizer --portrait
Generate a portrait image with a specific size
vendor/bin/muffinizer --portrait --width 300
vendor/bin/muffinizer --portrait --height 300
Generate an image with width and height
vendor/bin/muffinizer --portrait --width 300 --height 300