Changeset 2783 for branches/2.0/expressoMail1_2/inc/show_thumbs.php
- Timestamp:
- 05/14/10 14:03:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/expressoMail1_2/inc/show_thumbs.php
r2627 r2783 34 34 $twidth = 160; # width of the thumb 160 pixel 35 35 $theight = $twidth * $height / $width; # calculate height 36 $theight = $theight < 1 ? 1 : $theight; 36 37 $thumb = imagecreatetruecolor ($twidth, $theight); 37 38 imagecopyresized($thumb, $pic, 0, 0, 0, 0,$twidth, $theight, $width, $height); # resize image into thumb
Note: See TracChangeset
for help on using the changeset viewer.