From 4632a09466e986b311136fd0150bd4004b003c16 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 18 Apr 2006 08:47:08 +0000 Subject: new install theme and fixed jpeg resize issues --- lib/class/song.class.php | 1 + lib/ui.lib.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/class/song.class.php b/lib/class/song.class.php index ddaa96e7..45b37f1e 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -152,6 +152,7 @@ class Song { break; case 'mpc': $this->mime = "audio/x-musepack"; + $this->type = "MPC"; break; default: $this->mime = "audio/mpeg"; diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 2bed47c6..ec5a1b28 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -762,7 +762,7 @@ function img_resize($image,$size,$type){ /* First check for php-gd */ $info = gd_info(); - if ($type == 'jpg' AND !$info['JPG Support']) { + if ( ($type == 'jpg' OR $type == 'jpeg') AND !$info['JPG Support']) { return false; } elseif ($type == 'png' AND !$info['PNG Support']) { @@ -785,6 +785,7 @@ function img_resize($image,$size,$type){ // determine image type and send it to the client switch ($type) { case 'jpg': + case 'jpeg': imagejpeg($img,null,100); break; case 'gif': -- cgit