File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,17 @@ $to = __DIR__ . '/my-image.webp';
2424echo \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
2940If you try to convert to a path that has not been created, it will try to create it automatically.
You can’t perform that action at this time.
0 commit comments