From 0af2e0b99d6737c3c7aee573251b5bc36e55fe96 Mon Sep 17 00:00:00 2001 From: LC Date: Sun, 22 Oct 2023 00:48:59 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9sormais=20inutile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/album/plugins/thumbnailer.php | 81 ---------------------------- 1 file changed, 81 deletions(-) delete mode 100644 module/album/plugins/thumbnailer.php diff --git a/module/album/plugins/thumbnailer.php b/module/album/plugins/thumbnailer.php deleted file mode 100644 index c164992..0000000 --- a/module/album/plugins/thumbnailer.php +++ /dev/null @@ -1,81 +0,0 @@ - $tnhaut) -{ -$convert = $tnhaut/$height; -$height = $tnhaut; -$width = ceil($width*$convert); -} -if ($width > $tnlarge) -{ -$convert = $tnlarge/$width; -$width = $tnlarge; -$height = ceil($height*$convert); -} - -$largeur = $width; -$hauteur = $height; - -if($type == 1) -{ - $img_in = imagecreatefromgif($img); -} -elseif($type == 2) -{ - $img_in = imagecreatefromjpeg($img); -} -elseif($type == 3) -{ - $img_in = imagecreatefrompng($img); -} -elseif($type == 18) -{ - $img_in = imagecreatefromwebp($img); -} -imageinterlace($img_in, true); - -$img_out = imagecreatetruecolor($largeur, $hauteur) or die ('Impossible de créer un flux d\'image GD'); -imagecopyresampled($img_out, $img_in, 0, 0, 0, 0, imagesx($img_out), imagesy($img_out), imagesx($img_in), imagesy($img_in)); - - imagewebp($img_out, $miniature, 80); - imagedestroy($img_out); - } - header('Content-Type: image/webp'); - $data = file_get_contents($miniature); - echo $data; - clearstatcache(); -} -else {echo 'This is not an image';} -?>