Skip to content

Commit 83ed1bc

Browse files
committed
gamma correction disabled by default.
1 parent f268c7b commit 83ed1bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,11 @@ Both functions will be used in the order in which they were added.
359359
Gamma color correction
360360
--------
361361

362-
You can disable the gamma color correction enabled by default.
362+
You can enable the gamma color correction which is disabled by default.
363363

364364
```php
365365
$image = new ImageResize('image.png');
366-
$image->gamma(false);
366+
$image->gamma(true);
367367
```
368368

369369
API Doc

Diff for: lib/ImageResize.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ImageResize
2424
public $quality_webp = 85;
2525
public $quality_png = 6;
2626
public $quality_truecolor = true;
27-
public $gamma_correct = true;
27+
public $gamma_correct = false;
2828

2929
public $interlace = 1;
3030

0 commit comments

Comments
 (0)