You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For further details, have a look at the following sections.
63
63
64
64
#### Configuration
65
-
You may also change certain options from your `config.php` globally (`'fundevogel.colorist.optionName'`):
65
+
You may also change certain options from your `config.php` globally, like this: `'fundevogel.colorist.optionName'` (or simply pass them to the `thumb()` method:
|`'bin'`| string |`__DIR__ . '/bin/colorist'`| Path to `colorist` executable |
70
+
|`'bpc'`| integer |`'auto'`| Set bits-per-channel (J2K/JP2 only); ranging from `8` to `16`|
70
71
|`'formats'`| array |`['webp']`| Default file formats to be used on image uploads |
71
-
|`'speed'`| integer |`0`| Quality/speed tradeoff when encoding (AVIF only); `0` = best quality, `10` = fastest |
72
+
|`'deflum'`| integer |`80`| default/fallback luminance value in nits |
73
+
|`'hlglum'`| integer |`null`| Like `'deflum'`, but uses an appropriate diffuse white based on peak HLG |
74
+
|`'jobs'`| integer |`0`| Number of jobs to use when working (`0` = unlimited) |
75
+
|`'speed'`| integer |`'auto'`| Quality/speed tradeoff when encoding (AVIF only); `0` = best quality, `10` = fastest |
72
76
|`'template'`| string |`'image'`| Set file blueprint for generated images |
73
-
|`'tonemap'`| string|`'off'`| Set tonemapping (`'on'` or `'off'`) |
74
-
|`'yuv'`| string |`'420'`| Choose yuv output format for supported formats (`'444'`, `'422'`, `'420'` or `'yv12'`) |
77
+
|`'tonemap'`| string|bool |`'auto'`| Set tonemapping (`'on'` or `'off'`, but `true` & `false` are possible, too)|
78
+
|`'yuv'`| string |`'auto'`| Choose yuv output format for supported formats (`'444'`, `'422'`, `'420'` or `'yv12'`) |
75
79
76
80
The `colorist` library has [much more](https://github.com/joedrago/colorist/blob/master/docs/Usage.md) to offer, and more options will be made available in time - if one of it's many features you really feel is missing, feel free to open a PR!
77
81
82
+
**Note:** When working with multiple formats, you may want to turn `thumbs.quality` into an array and pass the desired `format` explicitly, like this:
0 commit comments