Skip to content

Commit 8ee7abd

Browse files
committed
Updated README.md
1 parent ed5c327 commit 8ee7abd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ $png = Sharp::run(
5656
'toFormat' => ['format' => 'png'], // Required for raw output
5757
'resize' => ['width' => 300, 'height' => 200]
5858
]
59-
);
59+
); // Returns a raw PNG binary string
6060
```
6161

6262
`is_raw` is a boolean parameter that indicates if the input is a raw data or a file path.
6363
`$svg` is the raw SVG XML string.
6464
`ext` is the image format: jpg, png, svg of the source data; it's used as the file extension internally.
6565

66-
File example:
66+
Example with file paths including filename and extension:
6767
```php
68-
$png = Sharp::run(
68+
Sharp::run(
6969
[
7070
'input' => ['is_raw' => false, 'data' => $svgPath],
7171
'output' => ['is_raw' => false, 'file' => $pngPath],

0 commit comments

Comments
 (0)