Changeset 2627 for branches/2.0/expressoMail1_2
- Timestamp:
- 04/23/10 17:08:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/expressoMail1_2/inc/show_thumbs.php
r2055 r2627 25 25 $image_mail = imap_fetchbody($mb, $msg_num, $msg_part, FT_UID); 26 26 $image = imap_base64($image_mail); 27 $ image =imagecreatefromstring ($image);27 $pic = @imagecreatefromstring ($image); 28 28 29 header("Content-Type: ".$file_type); 30 header("Content-Disposition: inline"); 31 32 $pic = $image; 33 if ($pic) { 29 if($pic !== FALSE) { 30 header("Content-Type: ".$file_type); 31 header("Content-Disposition: inline"); 34 32 $width = imagesx($pic); 35 33 $height = imagesy($pic); … … 38 36 $thumb = imagecreatetruecolor ($twidth, $theight); 39 37 imagecopyresized($thumb, $pic, 0, 0, 0, 0,$twidth, $theight, $width, $height); # resize image into thumb 40 imagejpeg($thumb,"",75); # Thumbnail as JPEG 41 38 imagejpeg($thumb,"",75); # Thumbnail as JPEG 39 } 42 40 ?>
Note: See TracChangeset
for help on using the changeset viewer.