1
0

use magick for image resize

This commit is contained in:
2018-02-03 23:49:44 +01:00
parent f44e7e6ace
commit ca07729318
3 changed files with 40 additions and 19 deletions

View File

@@ -240,9 +240,14 @@ class Programs
public static function createPreview($prog)
{
global $CONFIG;
$src = $prog['mainimage_path'];
$dst = $prog['preview_path'];
smart_resize_image($src , null, 250, 0, true, $dst, 100);
if ($CONFIG['use_magick'])
magick_resize_image($src, 250, 0, $dst);
else
smart_resize_image($src, 250, 0, true, $dst);
}
}