1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 12:10:45 +02:00

minor changes

This commit is contained in:
horst-n
2019-04-25 11:01:31 +02:00
parent 35b9a403e1
commit 232f66dedf

View File

@@ -323,6 +323,7 @@ class ImageSizerEngineGD extends ImageSizerEngine {
}
// write to file(s)
if(file_exists($dstFilename)) $this->wire('files')->unlink($dstFilename);
$result = false;
switch($this->imageType) {
@@ -414,6 +415,7 @@ class ImageSizerEngineGD extends ImageSizerEngine {
if(!function_exists('imagewebp')) return false;
$path_parts = pathinfo($filename);
$webpFilename = $path_parts['dirname'] . '/' . $path_parts['filename'] . '.webp';
if(file_exists($webpFilename)) $this->wire('files')->unlink($webpFilename);
return imagewebp($im, $webpFilename, $quality);
}