From 01e981dfdbfbdca8a72f65c50393d8b8ed4bb955 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 15 Nov 2008 23:16:36 +0000 Subject: [PATCH] Fix thumbnails creation for 8bpp and CMYK images, props DD32, fixes #7039 fixes #8231 git-svn-id: http://svn.automattic.com/wordpress/trunk@9727 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/image.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index b5890db1f5..c4c02e4e2f 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -319,13 +319,8 @@ function file_is_displayable_image($path) { $info = @getimagesize($path); if ( empty($info) ) $result = false; - elseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) - // only gif, jpeg and png images can reliably be displayed + elseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) // only gif, jpeg and png images can reliably be displayed $result = false; - elseif ( $info['channels'] > 0 && $info['channels'] != 3 ) { - // some web browsers can't display cmyk or grayscale jpegs - $result = false; - } else $result = true;