Changeset 380081
- Timestamp:
- 05/03/2011 07:49:52 AM (15 years ago)
- Location:
- imagemagick-engine
- Files:
-
- 2 added
- 2 deleted
- 2 edited
- 3 copied
-
tags/1.2.3 (copied) (copied from imagemagick-engine/trunk)
-
tags/1.2.3/imagemagick-engine.php (copied) (copied from imagemagick-engine/trunk/imagemagick-engine.php) (6 diffs)
-
tags/1.2.3/js/ui.progressbar-1.8.7.js (deleted)
-
tags/1.2.3/js/ui.progressbar-1.8.9.js (added)
-
tags/1.2.3/readme.txt (copied) (copied from imagemagick-engine/trunk/readme.txt) (2 diffs)
-
trunk/imagemagick-engine.php (modified) (6 diffs)
-
trunk/js/ui.progressbar-1.8.7.js (deleted)
-
trunk/js/ui.progressbar-1.8.9.js (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imagemagick-engine/tags/1.2.3/imagemagick-engine.php
r377749 r380081 6 6 Author: Orangelab 7 7 Author URI: http://www.orangelab.se 8 Version: 1.2. 28 Version: 1.2.3 9 9 Text Domain: imagemagick-engine 10 10 … … 40 40 * - handle TIF and other IM formats if possible 41 41 * - can we use IM instead of GD in more places? 42 * - custom crop of images instead of blindly going for the middle 42 43 */ 43 44 … … 107 108 */ 108 109 if (ime_script_version_compare('jquery-ui-core', '1.8', '>=')) { 109 wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.8. 7.js', __FILE__), array('jquery-ui-core', 'jquery-ui-widget'), '1.8.7');110 wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.8.9.js', __FILE__), array('jquery-ui-core', 'jquery-ui-widget'), '1.8.9'); 110 111 } else { 111 112 wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.7.2.js', __FILE__), array('jquery-ui-core'), '1.7.2'); … … 293 294 else 294 295 $new_ext = "jpg"; 295 296 296 297 /* 297 298 * Do the actual resize … … 323 324 , 'height' => $dst_h 324 325 ); 326 327 if (!isset($metadata['image-converter']) || !is_array($metadata['image-converter'])) 328 $metadata['image-converter'] = array(); 329 325 330 $metadata['image-converter'][$size] = 'IME'; 326 331 … … 583 588 $metadata = wp_get_attachment_metadata($id); 584 589 585 if (!$force) { 590 // Do not re-encode IME images unless forced 591 if (!$force && isset($metadata['image-converter']) && is_array($metadata['image-converter'])) { 592 $converter = $metadata['image-converter']; 593 586 594 foreach ($sizes AS $s => $ignore) { 587 if ( $metadata['image-converter'][$s] == 'IME')595 if (isset($converter[$s]) && $converter[$s] == 'IME') 588 596 unset($sizes[$s]); 589 597 } -
imagemagick-engine/tags/1.2.3/readme.txt
r377749 r380081 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.2 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 8 8 Improve the quality of re-sized images by replacing standard GD library with ImageMagick. … … 75 75 == Changelog == 76 76 77 = 1.2.3 = 78 * Fix bug in resize all images handling, also remove some PHP notices. Thanks to Andreas Kleinschmidt for the report 79 * Upgrade jQuery UI Progressbar to version 1.8.9, to match version of UI Core in WordPress 80 77 81 = 1.2.2 = 78 82 * Fixed filepath with spaces on Windows -
imagemagick-engine/trunk/imagemagick-engine.php
r377749 r380081 6 6 Author: Orangelab 7 7 Author URI: http://www.orangelab.se 8 Version: 1.2. 28 Version: 1.2.3 9 9 Text Domain: imagemagick-engine 10 10 … … 40 40 * - handle TIF and other IM formats if possible 41 41 * - can we use IM instead of GD in more places? 42 * - custom crop of images instead of blindly going for the middle 42 43 */ 43 44 … … 107 108 */ 108 109 if (ime_script_version_compare('jquery-ui-core', '1.8', '>=')) { 109 wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.8. 7.js', __FILE__), array('jquery-ui-core', 'jquery-ui-widget'), '1.8.7');110 wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.8.9.js', __FILE__), array('jquery-ui-core', 'jquery-ui-widget'), '1.8.9'); 110 111 } else { 111 112 wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.7.2.js', __FILE__), array('jquery-ui-core'), '1.7.2'); … … 293 294 else 294 295 $new_ext = "jpg"; 295 296 296 297 /* 297 298 * Do the actual resize … … 323 324 , 'height' => $dst_h 324 325 ); 326 327 if (!isset($metadata['image-converter']) || !is_array($metadata['image-converter'])) 328 $metadata['image-converter'] = array(); 329 325 330 $metadata['image-converter'][$size] = 'IME'; 326 331 … … 583 588 $metadata = wp_get_attachment_metadata($id); 584 589 585 if (!$force) { 590 // Do not re-encode IME images unless forced 591 if (!$force && isset($metadata['image-converter']) && is_array($metadata['image-converter'])) { 592 $converter = $metadata['image-converter']; 593 586 594 foreach ($sizes AS $s => $ignore) { 587 if ( $metadata['image-converter'][$s] == 'IME')595 if (isset($converter[$s]) && $converter[$s] == 'IME') 588 596 unset($sizes[$s]); 589 597 } -
imagemagick-engine/trunk/readme.txt
r377749 r380081 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.2 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 8 8 Improve the quality of re-sized images by replacing standard GD library with ImageMagick. … … 75 75 == Changelog == 76 76 77 = 1.2.3 = 78 * Fix bug in resize all images handling, also remove some PHP notices. Thanks to Andreas Kleinschmidt for the report 79 * Upgrade jQuery UI Progressbar to version 1.8.9, to match version of UI Core in WordPress 80 77 81 = 1.2.2 = 78 82 * Fixed filepath with spaces on Windows
Note: See TracChangeset
for help on using the changeset viewer.