Skip to content

Commit 9346c90

Browse files
committed
add some examples
1 parent ba7a87d commit 9346c90

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,23 @@ caddy.
117117
| bg | Background | Background color (white, black, red, magenta, blue, cyan, green, yellow, or hexadecimal format #RRGGBB) | Color |
118118
| fm | Type | Image type (jpg, png, gif, webp, avif) | Image Type (default original) |
119119

120+
## Examples
121+
122+
* Resize an image to a width of 400 pixels and a height of 300 pixels:
123+
* http://example.com/image.jpg?w=400&h=300
124+
* Crop an image to a width of 200 pixels and a height of 150 pixels starting from the top-left corner (x=50, y=50):
125+
* http://example.com/image.jpg?w=200&h=150&t=50&l=50&crop=true
126+
* Adjust the quality of the image to 80:
127+
* http://example.com/image.jpg?q=80
128+
* Convert an image to PNG format and apply a Gaussian blur of 5:
129+
* http://example.com/image.jpg?fm=png&b=5
130+
* Rotate an image by 180 degrees and flip it horizontally:
131+
* http://example.com/image.jpg?r=180&flop=true
132+
* Apply a color threshold of 0.5 and adjust the brightness to -10:
133+
* http://example.com/image.jpg?th=0.5&br=-10
134+
* Convert an image to AVIF format with lossless compression:
135+
* http://example.com/image.jpg?fm=avif&ll=true
136+
120137
## Planned Features
121138

122139
The following features are planned for future implementation:

0 commit comments

Comments
 (0)