diff --git a/library/icon.php b/library/icon.php index aee6941..aab527e 100755 --- a/library/icon.php +++ b/library/icon.php @@ -81,7 +81,7 @@ final class Icon { } ob_start(); - imagejpeg($resized, null, 100); + imagepng($resized); imagedestroy($resized); return ob_get_clean(); } diff --git a/public/image.php b/public/image.php index 2f0bf78..abaa6a7 100755 --- a/public/image.php +++ b/public/image.php @@ -5,11 +5,11 @@ require_once('../library/icon.php'); if (isset($_GET['hash'])) { - header("Content-Type: image/jpeg"); + header("Content-Type: image/png"); if (CACHE_ENABLED) { - $filename = dirname(__FILE__) . '/../cache/' . $_GET['hash'] . '.jpeg'; + $filename = dirname(__FILE__) . '/../cache/' . $_GET['hash'] . '.png'; if (!file_exists($filename)) {