Changeset 10641 for trunk/include
- Timestamp:
- Apr 27, 2011, 7:03:25 PM (13 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r10570 r10641 321 321 // 'filename' 322 322 $conf['uniqueness_mode'] = 'md5sum'; 323 324 // Library used for image resizing. Value could be 'auto', 'imagick', 325 // 'ext_imagick or 'gd'. If value is 'auto', library will be choosen in this 326 // order. If choosen library is not available, another one will be picked up. 327 $conf['image_library'] = 'auto'; 328 329 // If library used is external installation of ImageMagick ('ext_imagick'), 330 // you can define imagemagick directory. 331 $conf['ext_imagick_dir'] = ''; 323 332 324 333 // +-----------------------------------------------------------------------+ -
trunk/include/ws_functions.inc.php
r10596 r10641 2689 2689 include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php'); 2690 2690 include_once(PHPWG_ROOT_PATH.'admin/include/functions_upload.inc.php'); 2691 include_once(PHPWG_ROOT_PATH.'admin/include/image.class.php'); 2691 2692 2692 2693 if (!empty($params['image_id'])) … … 2726 2727 prepare_directory(dirname($thumb_path)); 2727 2728 2728 $result = trigger_event( 2729 'upload_thumbnail_resize', 2730 false, 2731 $image_path, 2729 $img = new pwg_image($image_path, $params['library']); 2730 2731 $result = $img->pwg_resize( 2732 2732 $thumb_path, 2733 2733 $params['maxwidth'], 2734 2734 $params['maxheight'], 2735 2735 $params['quality'], 2736 $params['automatic_rotation'], 2736 2737 true, 2737 2738 get_boolean($params['crop']), 2738 2739 get_boolean($params['follow_orientation']) 2739 2740 ); 2741 2742 $img->destroy(); 2740 2743 } 2741 2744 elseif (file_exists($hd_path)) 2742 2745 { 2743 $result = trigger_event( 2744 'upload_image_resize', 2745 false, 2746 $hd_path, 2746 $img = new pwg_image($hd_path); 2747 2748 $result = $img->pwg_resize( 2747 2749 $image_path, 2748 2750 $params['maxwidth'], 2749 2751 $params['maxheight'], 2750 2752 $params['quality'], 2753 $params['automatic_rotation'], 2751 2754 false 2752 2755 ); 2756 2757 $img->destroy(); 2753 2758 2754 2759 if (!empty($image['has_high']))
Note: See TracChangeset
for help on using the changeset viewer.