Skip to content

Commit

Permalink
Set correct quality parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
AIC-BV authored Oct 12, 2023
1 parent de146af commit 3ab378c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Database/Attach/Resizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@
* Usage:
* Resizer::open(mixed $file)
* ->resize(int $width , int $height, string 'exact, portrait, landscape, auto, fit or crop')
* ->save(string 'path/to/file.jpg', int $quality);
* ->setOptions(['quality' => int $quality])
* ->save(string 'path/to/file.jpg');
*
* // Resize and save an image.
* Resizer::open(Input::file('field_name'))
* ->resize(800, 600, 'crop')
* ->save('path/to/file.jpg', 100);
* ->setOptions(['quality' => 100])
* ->save('path/to/file.jpg');
*
* // Recompress an image.
* Resizer::open('path/to/image.jpg')
* ->save('path/to/new_image.jpg', 60);
* ->setOptions(['quality' => 60])
* ->save('path/to/new_image.jpg');
*
* @author Alexey Bobkov, Samuel Georges
*/
Expand Down

0 comments on commit 3ab378c

Please sign in to comment.