Skip to content

Commit 9cf559d

Browse files
committed
Updated readme
1 parent 8bd156c commit 9cf559d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ $to = __DIR__ . '/my-image.webp';
2424
echo \ImageConverter\convert($from, $to);
2525
```
2626

27+
## Quality
28+
29+
The third argument is an optional `$quality` value. It will differ depending on your image format.
30+
31+
| Format | Default | Min | Max | Description |
32+
| ------ | ------- | ------ | ------ | --------------------------- |
33+
| gif | `null` | `null` | `null` | Quality value not supported |
34+
| jpg | `-1` | `0` | `100` | Higher means better quality |
35+
| png | `-1` | `0` | `9` | Lower means better quality |
36+
| webp | `80` | `0` | `100` | Higher means better quality |
37+
2738
## Notes
2839

2940
If you try to convert to a path that has not been created, it will try to create it automatically.

0 commit comments

Comments
 (0)