diff options
author | Andrew Dolgov <[email protected]> | 2019-08-18 18:33:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-18 18:33:18 +0300 |
commit | 8e0d742cc4fbc7d79b27a3323e7836f560a6d440 (patch) | |
tree | 985851ca4a54138bf5f9bd7a7fa40ce1b73cd880 | |
parent | ae39d5b219a97d0df56d2966aa0cd4b2f41163a5 (diff) |
disable play stamp for gifs
-rw-r--r-- | init.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -27,7 +27,8 @@ class Api_Resize_Media extends Plugin { $host->add_hook($host::HOOK_ARTICLE_IMAGE, $this, 999); } - private function make_thumbnail($input_filename, $output_filename, $dim_max_x = 600, $dim_max_y = 600, $content_type = "", $force_stamp = false) { + private function make_thumbnail($input_filename, $output_filename, $dim_max_x = 600, $dim_max_y = 600, + $content_type = "", $force_stamp = false) { if ($content_type == "image/webp") { $o_im = @imagecreatefromwebp($input_filename); @@ -59,7 +60,7 @@ class Api_Resize_Media extends Plugin { $t_im = imageCreateTrueColor($t_width, $t_height); $need_stamp = false; - if ($force_stamp || ($imageinfo && $imageinfo["mime"] == "image/gif")) { + if ($force_stamp /*|| ($enable_stamp && $imageinfo && $imageinfo["mime"] == "image/gif")*/) { $need_stamp = true; imageFill($t_im, 0, 0, 0xffffff); /*} else { -- this might make resized image significantly larger |