Skip to content

Commit 351e51f

Browse files
committed
bug fix in temp save
1 parent 080c947 commit 351e51f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,8 @@ $image
232232
->save('image4.jpg')
233233
;
234234
```
235+
236+
API Doc
237+
-------
238+
239+
https://eventviva.github.io/php-image-resize/class-Eventviva.ImageResize.html

lib/ImageResize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function save($filename, $image_type = null, $quality = null, $permission
213213
*/
214214
public function getImageAsString($image_type = null, $quality = null)
215215
{
216-
$string_temp = "php://temp/" . substr(str_shuffle(str_repeat('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',5)),0,40);
216+
$string_temp = "php://temp";
217217

218218
$this->save($string_temp , $image_type, $quality);
219219

0 commit comments

Comments
 (0)