Changeset 8227 for trunk/admin/include/functions_upload.inc.php
- Timestamp:
- Dec 22, 2010, 4:15:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upload.inc.php
r8219 r8227 85 85 false 86 86 ); 87 88 if (is_imagick()) 89 { 90 if ($conf['upload_form_hd_keep']) 91 { 92 $need_resize = need_resize($high_path, $conf['upload_form_hd_maxwidth'], $conf['upload_form_hd_maxheight']); 93 94 if ($conf['upload_form_hd_resize'] and $need_resize) 95 { 96 pwg_image_resize( 97 false, 98 $high_path, 99 $high_path, 100 $conf['upload_form_hd_maxwidth'], 101 $conf['upload_form_hd_maxheight'], 102 $conf['upload_form_hd_quality'], 103 false 104 ); 105 $high_infos = pwg_image_infos($high_path); 106 } 107 } 108 else 109 { 110 unlink($high_path); 111 $high_infos = null; 112 } 113 } 87 114 } 88 115 … … 251 278 } 252 279 253 if ( extension_loaded('imagick'))280 if (is_imagick()) 254 281 { 255 282 return pwg_image_resize_im($source_filepath, $destination_filepath, $max_width, $max_height, $quality, $strip_metadata); … … 521 548 array_push($_SESSION['uploads_error'][$upload_id], $error_message); 522 549 } 550 551 function is_imagick() 552 { 553 if (extension_loaded('imagick')) 554 { 555 return true; 556 } 557 558 return false; 559 } 523 560 ?>
Note: See TracChangeset
for help on using the changeset viewer.