Changeset 7294 for extensions/gvideo
- Timestamp:
- Oct 20, 2010, 1:40:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/admin/thumbnails.php
r7291 r7294 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 function get_image_with_band($srcImage , $gd_ver)5 function get_image_with_band($srcImage) 6 6 { 7 7 $srcWidth = imagesx($srcImage); … … 9 9 $const = intval($srcWidth * 0.04); 10 10 11 if ($gd_ver >= 2) 12 { 13 $imgBand = imagecreatetruecolor($srcWidth + 6 * $const, $srcHeight); 14 } 15 else 16 { 17 $imgBand = imagecreate($srcWidth + 6 * $const, $srcHeight); 18 } 19 11 $imgBand = imagecreatetruecolor($srcWidth + 6 * $const, $srcHeight); 12 20 13 $white = imagecolorallocate($imgBand, 255, 255, 255); 21 14 $y_start = intval($srcHeight / 2); … … 69 62 if (isset($_POST['add_band'])) 70 63 { 71 $srcImage = get_image_with_band($srcImage , $gd_ver[0]);64 $srcImage = get_image_with_band($srcImage); 72 65 } 73 66
Note: See TracChangeset
for help on using the changeset viewer.