We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed5c327 commit 8ee7abdCopy full SHA for 8ee7abd
README.md
@@ -56,16 +56,16 @@ $png = Sharp::run(
56
'toFormat' => ['format' => 'png'], // Required for raw output
57
'resize' => ['width' => 300, 'height' => 200]
58
]
59
-);
+); // Returns a raw PNG binary string
60
```
61
62
`is_raw` is a boolean parameter that indicates if the input is a raw data or a file path.
63
`$svg` is the raw SVG XML string.
64
`ext` is the image format: jpg, png, svg of the source data; it's used as the file extension internally.
65
66
-File example:
+Example with file paths including filename and extension:
67
```php
68
-$png = Sharp::run(
+Sharp::run(
69
[
70
'input' => ['is_raw' => false, 'data' => $svgPath],
71
'output' => ['is_raw' => false, 'file' => $pngPath],
0 commit comments