Changeset 224 for trunk/lib/ImageThumb.inc.php
- Timestamp:
- Jan 9, 2007 12:47:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ImageThumb.inc.php
r204 r224 521 521 // Create source image data in memory. 522 522 switch ($source_image_type) { 523 case IMAGETYPE_JPEG : 523 case IMAGETYPE_JPEG : // = 2 524 524 $source_image_resource = imagecreatefromjpeg($source_file); 525 525 break; 526 case IMAGETYPE_PNG : 526 case IMAGETYPE_PNG : // = 3 527 527 $source_image_resource = imagecreatefrompng($source_file); 528 528 break; 529 case IMAGETYPE_GIF : 529 case IMAGETYPE_GIF : // = 1 530 530 $source_image_resource = imagecreatefromgif($source_file); 531 531 break; 532 case IMAGETYPE_WBMP : 532 case IMAGETYPE_WBMP : // = 15 533 533 $source_image_resource = imagecreatefromwbmp($source_file); 534 case IMAGETYPE_SWF : // = 4 535 case IMAGETYPE_PSD : // = 5 536 case IMAGETYPE_BMP : // = 6 537 case IMAGETYPE_TIFF_II : // = 7 538 case IMAGETYPE_TIFF_MM : // = 8 539 case IMAGETYPE_JPC : // = 9 540 case IMAGETYPE_JP2 : // = 10 541 case IMAGETYPE_JPX : // = 11 542 case IMAGETYPE_JB2 : // = 12 543 case IMAGETYPE_SWC : // = 13 544 case IMAGETYPE_IFF : // = 14 545 case IMAGETYPE_XBM : // = 16 534 546 default : 535 547 $app->logMsg(sprintf('Source image type %s not supported.', $source_image_type), LOG_WARNING, __FILE__, __LINE__);
Note: See TracChangeset
for help on using the changeset viewer.