Skip to content

Commit 6d2d6f8

Browse files
committed
Fix old references in README to get() method
1 parent 8eafd49 commit 6d2d6f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ $image->save('image2.jpg');
153153

154154
By default they are set to 75 and 0 respectively. See the manual entries for [`imagejpeg()`](http://www.php.net/manual/en/function.imagejpeg.php) and [`imagepng()`](http://www.php.net/manual/en/function.imagepng.php) for more info.
155155

156-
You can also pass the quality directly to the `save()`, `output()` and `get()` methods:
156+
You can also pass the quality directly to the `save()`, `output()` and `getImageAsString()` methods:
157157

158158
```php
159159
$image = new ImageResize('image.jpg');
@@ -166,7 +166,7 @@ $image->output(IMAGETYPE_PNG, 4);
166166

167167
$image = new ImageResize('image.jpg');
168168
$image->scale(50);
169-
$result = $image->get(IMAGETYPE_PNG, 4);
169+
$result = $image->getImageAsString(IMAGETYPE_PNG, 4);
170170
```
171171

172172
We're passing `null` for the image type in the example above to skip over it and provide the quality. In this case, the image type is assumed to be the same as the input.

0 commit comments

Comments
 (0)