summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-15 13:06:56 +0300
committerAndrew Dolgov <[email protected]>2019-08-15 13:06:56 +0300
commit3367bfc862095fc64e3d7f7d1b800f258d0e449d (patch)
treed670925fa2038a501b4c0eaa5910d0ffa1f243f4
parente841f6ddcf76c90fd4568b6c17eee8aaa945e763 (diff)
mention why we don't support alpha in webp output
-rw-r--r--init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.php b/init.php
index 52098d7..e0ba17a 100644
--- a/init.php
+++ b/init.php
@@ -62,6 +62,9 @@ class Af_Zz_Api_Resize extends Plugin {
if ($force_stamp || ($imageinfo && $imageinfo["mime"] == "image/gif")) {
$need_stamp = true;
imageFill($t_im, 0, 0, 0xffffff);
+ /*} else { -- this might make resized image significantly larger
+ imagealphablending($t_im, false);
+ imagesavealpha($t_im, true); */
}
imageCopyResampled($t_im, $o_im, 0, 0, 0, 0,