Changeset 13315 for extensions/rotateImage/ws_functions.inc.php
- Timestamp:
- Feb 23, 2012, 12:10:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rotateImage/ws_functions.inc.php
r13314 r13315 17 17 function ws_image_rotate($params, &$service) 18 18 { 19 global $conf; 20 19 21 if (!is_admin()) 20 22 { … … 54 56 55 57 $img = new pwg_image($image_path); 58 $img->set_compression_quality($conf['upload_form_websize_quality']); 56 59 $img->rotate($angle); 57 60 $img->write($image_path); … … 65 68 foreach ($sizes as $size) { 66 69 $resized_path = file_path_for_type($image_path,$size); 70 71 $quality = $conf['upload_form_hd_quality']; 72 if ('thumb' == $size) { 73 $quality = $conf['upload_form_thumb_quality']; 74 } 75 67 76 if (file_exists($resized_path)) { 68 77 $resized = new pwg_image($resized_path); 78 $resized->set_compression_quality($quality); 69 79 $resized->rotate($angle); 70 80 $resized->write($resized_path);
Note: See TracChangeset
for help on using the changeset viewer.