From bf2cf3c0483780e9a38cfd11fc5b88b89dbcda8a Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Mon, 13 Aug 2012 21:39:27 +0200 Subject: [PATCH] Removes old code. --- src/_h5ai/php/inc/Thumb.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/_h5ai/php/inc/Thumb.php b/src/_h5ai/php/inc/Thumb.php index cbaf01e4..8f1ba24f 100644 --- a/src/_h5ai/php/inc/Thumb.php +++ b/src/_h5ai/php/inc/Thumb.php @@ -48,7 +48,6 @@ class Thumb { } $name = "thumb-" . sha1("$sourceAbsPath-$width-$height-$mode") . ".jpg"; - // $name = "thumb-" . sha1("$sourceAbsPath-$width-$height-$mode") . ".png"; $thumbAbsPath = $this->h5ai->getCacheAbsPath() . "/" . $name; $thumbAbsHref = $this->h5ai->getCacheAbsHref() . $name; @@ -57,9 +56,6 @@ class Thumb { $image->setSource($sourceAbsPath); $image->thumb($mode, $width, $height); $image->saveDestJpeg($thumbAbsPath, 80); - - // $image->saveDestPng($thumbAbsPath, 9); - // Magic::thumb($mode, $sourceAbsPath, $thumbAbsPath, $width, $height); } return file_exists($thumbAbsPath) ? $thumbAbsHref : null;