This commit is contained in:
Shish
2019-11-04 01:04:08 +00:00
parent 7601140825
commit c7d90c2df7
9 changed files with 19 additions and 20 deletions

View File

@ -331,13 +331,13 @@ class TranscodeImage extends Extension
}
break;
}
if ($result===false) {
throw new ImageTranscodeException("Error while transcoding ".$source_name." to ".$target_format);
}
return $tmp_name;
} finally {
imagedestroy($image);
}
if ($result===false) {
throw new ImageTranscodeException("Error while transcoding ".$source_name." to ".$target_format);
}
return $tmp_name;
}
private function transcode_image_convert(String $source_name, String $source_format, string $target_format): string