Make WordPress Core


Ignore:
Timestamp:
11/15/2008 11:16:36 PM (17 years ago)
Author:
azaozz
Message:

Fix thumbnails creation for 8bpp and CMYK images, props DD32, fixes #7039 fixes #8231

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/image.php

    r9119 r9727  
    320320    if ( empty($info) )
    321321        $result = false;
    322     elseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) )
    323         // only gif, jpeg and png images can reliably be displayed
     322    elseif ( !in_array($info[2], array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) // only gif, jpeg and png images can reliably be displayed
    324323        $result = false;
    325     elseif ( $info['channels'] > 0 && $info['channels'] != 3 ) {
    326         // some web browsers can't display cmyk or grayscale jpegs
    327         $result = false;
    328     }
    329324    else
    330325        $result = true;
Note: See TracChangeset for help on using the changeset viewer.