Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrotroller/image-muffin
Generate image for fixtures
https://github.com/pedrotroller/image-muffin
Last synced: 29 days ago
JSON representation
Generate image for fixtures
- Host: GitHub
- URL: https://github.com/pedrotroller/image-muffin
- Owner: PedroTroller
- Created: 2016-04-06T07:28:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-29T17:05:13.000Z (about 6 years ago)
- Last Synced: 2024-11-17T05:26:45.982Z (about 1 month ago)
- Language: PHP
- Size: 2.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This script will return the content of the image directly.
## Usage
```bash
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
```bash
vendor/bin/muffinizer --landscape
```#### Generate a landscape image with a specific size
```bash
vendor/bin/muffinizer --landscape --width 300
``````bash
vendor/bin/muffinizer --landscape --height 300
```### Generate a portrait image
```bash
vendor/bin/muffinizer --portrait
```#### Generate a portrait image with a specific size
```bash
vendor/bin/muffinizer --portrait --width 300
``````bash
vendor/bin/muffinizer --portrait --height 300
```### Generate an image with width and height
```bash
vendor/bin/muffinizer --portrait --width 300 --height 300
```