Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion php_image_magician.php
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,7 @@ public function saveImage($savePath, $imageQuality="100")
{

// *** Perform a check or two.
if (!is_resource($this->imageResized)) { if ($this->debug) { die('saveImage: This is not a resource.'); }else{ die(); }}
if (! $this->imageResized instanceof \GdImage) { if ($this->debug) { die('saveImage: This is not a resource.'); }else{ die(); }}
$fileInfoArray = pathInfo($savePath);
clearstatcache();
if (!is_writable($fileInfoArray['dirname'])) { if ($this->debug) { die('The path is not writable. Please check your permissions.'); }else{ die(); }}
Expand Down