Changeset 531
- Timestamp:
- 08/02/07 15:02:23 (1 year ago)
- Files:
-
- avatar-upload/trunk/additional-files/avatar-upload.php (modified) (2 diffs)
- avatar-upload/trunk/bb-avatar-upload.php (modified) (1 diff)
- avatar-upload/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
avatar-upload/trunk/additional-files/avatar-upload.php
r510 r531 215 215 $im1 = @imagecreatefromgif($img_temp); 216 216 $im2 = @imagecreate($new_width, $new_height) or $error = 1; 217 $bg = @imagecolorallocate($im2, 192, 192, 192); // default background color 218 @imagecolortransparent($im2, $bg); // make it transparent 217 219 @imagecopyresampled ($im2, $im1, 0, 0, 0, 0, $new_width, $new_height, $img_w, $img_h); 218 220 @imagegif($im2, $img_temp); … … 232 234 $im1 = @imagecreatefrompng($img_temp); 233 235 $im2 = ($truecolor) ? @imagecreatetruecolor($new_width, $new_height) : @imagecreate($new_width, $new_height); 236 $bg = @imagecolorallocate($im2, 192, 192, 192); // default background colour 237 @imagecolortransparent($im2, $bg); // make it transparent 238 @imagealphablending($im2, false); // stop alpha blending 239 @imagesavealpha($im2, true); // save original image alpha channel 234 240 @imagecopyresampled ($im2, $im1, 0, 0, 0, 0, $new_width, $new_height, $img_w, $img_h); 235 241 $im2 = ($truecolor) ? do_unsharp_mask($im2, $config->use_unsharpmask) : $im2; avatar-upload/trunk/bb-avatar-upload.php
r510 r531 3 3 Plugin Name: Avatar Upload 4 4 Plugin URI: http://bbpress.org/plugins/topic/46 5 Version: 0. 75 Version: 0.8 6 6 Description: Allows users to upload an avatar (gif, jpeg/jpg or png) image to bbPress. 7 7 Author: Louise Dade avatar-upload/trunk/readme.txt
r510 r531 4 4 Requires at least: 0.8.2 5 5 Tested up to: 0.8.2.1 6 Stable Tag: 0. 76 Stable Tag: 0.8 7 7 8 8 Allows users to upload an avatar (gif, jpeg/jpg or png) image to bbPress. Admins can configure maximum allowed file size and image dimensions. Includes fel64's code enabling 'Identicons' - default avatars made of abstract patterns unique to each user. … … 133 133 134 134 == Change Log == 135 2007-08-02 Ver. 0.8 Added support for transparent GIFs and PNGs in resize routine. 135 136 136 137 2007-07-23 Ver. 0.7 Added admin page for configuration, added an unsharp mask function, changed
