Version Description
- Added medium_large image size by default
- Display version of ImageMagick CLI (thanks @marcissimus)
Download this release
Release Info
Developer | rickardw |
Plugin | ImageMagick Engine |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- imagemagick-engine.php +8 -4
- readme.txt +5 -1
imagemagick-engine.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Description: Improve the quality of re-sized images by replacing standard GD library with ImageMagick
|
6 |
Author: Orangelab
|
7 |
Author URI: https://orangelab.com/
|
8 |
-
Version: 1.6.
|
9 |
Text Domain: imagemagick-engine
|
10 |
|
11 |
Copyright @ 2020 Orangelab AB
|
@@ -43,7 +43,7 @@ define('IME_OPTION_VERSION', 1);
|
|
43 |
$ime_options_default = array('enabled' => false
|
44 |
, 'mode' => null
|
45 |
, 'cli_path' => null
|
46 |
-
, 'handle_sizes' => array('thumbnail' => 'size', 'medium' => 'quality', 'large' => 'quality')
|
47 |
, 'quality' => array('quality' => -1, 'size' => 70)
|
48 |
, 'quality' => ''
|
49 |
, 'version' => constant('IME_OPTION_VERSION')
|
@@ -92,7 +92,7 @@ function ime_init() {
|
|
92 |
add_action('wp_ajax_ime_process_image', 'ime_ajax_process_image');
|
93 |
add_action('wp_ajax_ime_regeneration_get_images','ime_ajax_regeneration_get_images');
|
94 |
|
95 |
-
wp_register_script('ime-admin', plugins_url('/js/ime-admin.js', __FILE__), array('jquery', 'jquery-ui-progressbar'));
|
96 |
}
|
97 |
}
|
98 |
|
@@ -127,6 +127,7 @@ function ime_available_image_sizes() {
|
|
127 |
global $_wp_additional_image_sizes;
|
128 |
$sizes = array('thumbnail' => __('Thumbnail', 'imagemagick-engine')
|
129 |
, 'medium' => __('Medium', 'imagemagick-engine')
|
|
|
130 |
, 'large' => __('Large', 'imagemagick-engine')); // Standard sizes
|
131 |
if ( isset( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) ) {
|
132 |
foreach ($_wp_additional_image_sizes as $name => $spec)
|
@@ -465,6 +466,8 @@ function ime_im_cli_check_executable($fullpath) {
|
|
465 |
|
466 |
@exec('"' . $fullpath . '" --version', $output);
|
467 |
|
|
|
|
|
468 |
return count($output) > 0;
|
469 |
}
|
470 |
|
@@ -709,7 +712,7 @@ function ime_ajax_process_image() {
|
|
709 |
function ime_admin_menu() {
|
710 |
$ime_page = add_options_page('ImageMagick Engine', 'ImageMagick Engine', 'manage_options', 'imagemagick-engine', 'ime_option_page');
|
711 |
|
712 |
-
$script_pages = array( $ime_page, 'media.php', 'media-new.php', 'media-upload.php', 'media-upload-popup', 'post.php' );
|
713 |
foreach ($script_pages as $page) {
|
714 |
add_action('admin_print_scripts-' . $page, 'ime_admin_print_scripts');
|
715 |
add_action('admin_print_styles-' . $page, 'ime_admin_print_styles');
|
@@ -1016,6 +1019,7 @@ function ime_option_page() {
|
|
1016 |
<img id="cli_path_progress" src="<?php echo ime_option_admin_images_url(); ?>wpspin_light.gif" alt="<?php _e('Testing command...', 'qp-qie'); ?>" <?php ime_option_display(false); ?> />
|
1017 |
<input id="cli_path" type="text" name="cli_path" size="<?php echo max(30, strlen($cli_path) + 5); ?>" value="<?php echo $cli_path; ?>" />
|
1018 |
<input type="button" name="ime_cli_path_test" id="ime_cli_path_test" value="<?php _e('Test path', 'imagemagick-engine'); ?>" class="button-secondary" />
|
|
|
1019 |
</td>
|
1020 |
</tr>
|
1021 |
<tr>
|
5 |
Description: Improve the quality of re-sized images by replacing standard GD library with ImageMagick
|
6 |
Author: Orangelab
|
7 |
Author URI: https://orangelab.com/
|
8 |
+
Version: 1.6.2
|
9 |
Text Domain: imagemagick-engine
|
10 |
|
11 |
Copyright @ 2020 Orangelab AB
|
43 |
$ime_options_default = array('enabled' => false
|
44 |
, 'mode' => null
|
45 |
, 'cli_path' => null
|
46 |
+
, 'handle_sizes' => array('thumbnail' => 'size', 'medium' => 'quality', 'medium_large' => 'quality', 'large' => 'quality')
|
47 |
, 'quality' => array('quality' => -1, 'size' => 70)
|
48 |
, 'quality' => ''
|
49 |
, 'version' => constant('IME_OPTION_VERSION')
|
92 |
add_action('wp_ajax_ime_process_image', 'ime_ajax_process_image');
|
93 |
add_action('wp_ajax_ime_regeneration_get_images','ime_ajax_regeneration_get_images');
|
94 |
|
95 |
+
wp_register_script('ime-admin', plugins_url('/js/ime-admin.js?v=1.6.2', __FILE__), array('jquery', 'jquery-ui-progressbar'));
|
96 |
}
|
97 |
}
|
98 |
|
127 |
global $_wp_additional_image_sizes;
|
128 |
$sizes = array('thumbnail' => __('Thumbnail', 'imagemagick-engine')
|
129 |
, 'medium' => __('Medium', 'imagemagick-engine')
|
130 |
+
, 'medium_large' => __('Medium Large', 'imagemagick-engine')
|
131 |
, 'large' => __('Large', 'imagemagick-engine')); // Standard sizes
|
132 |
if ( isset( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) ) {
|
133 |
foreach ($_wp_additional_image_sizes as $name => $spec)
|
466 |
|
467 |
@exec('"' . $fullpath . '" --version', $output);
|
468 |
|
469 |
+
ime_set_option( 'imagemagick_version', $output, true );
|
470 |
+
|
471 |
return count($output) > 0;
|
472 |
}
|
473 |
|
712 |
function ime_admin_menu() {
|
713 |
$ime_page = add_options_page('ImageMagick Engine', 'ImageMagick Engine', 'manage_options', 'imagemagick-engine', 'ime_option_page');
|
714 |
|
715 |
+
$script_pages = array( $ime_page, 'media.php', 'media-new.php', 'media-upload.php', 'media-upload-popup', 'post.php', 'upload.php' );
|
716 |
foreach ($script_pages as $page) {
|
717 |
add_action('admin_print_scripts-' . $page, 'ime_admin_print_scripts');
|
718 |
add_action('admin_print_styles-' . $page, 'ime_admin_print_styles');
|
1019 |
<img id="cli_path_progress" src="<?php echo ime_option_admin_images_url(); ?>wpspin_light.gif" alt="<?php _e('Testing command...', 'qp-qie'); ?>" <?php ime_option_display(false); ?> />
|
1020 |
<input id="cli_path" type="text" name="cli_path" size="<?php echo max(30, strlen($cli_path) + 5); ?>" value="<?php echo $cli_path; ?>" />
|
1021 |
<input type="button" name="ime_cli_path_test" id="ime_cli_path_test" value="<?php _e('Test path', 'imagemagick-engine'); ?>" class="button-secondary" />
|
1022 |
+
<span <?php ime_option_display($cli_path_ok); ?>><br><br><?php echo ime_get_option('imagemagick_version')[0]; ?></span>
|
1023 |
</td>
|
1024 |
</tr>
|
1025 |
<tr>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: rickardw, orangelab
|
|
3 |
Tags: image, images, picture, imagemagick, gd
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.3.2
|
6 |
-
Stable tag: 1.6.
|
7 |
|
8 |
Improve the quality of re-sized images by replacing standard GD library with ImageMagick.
|
9 |
|
@@ -74,6 +74,10 @@ You'll probably have problems with various other plugins too unless you fix this
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
|
|
77 |
= 1.6.1 =
|
78 |
* Fixed deprecated use of gd_edit_image_support (thanks @chesio)
|
79 |
|
3 |
Tags: image, images, picture, imagemagick, gd
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.3.2
|
6 |
+
Stable tag: 1.6.2
|
7 |
|
8 |
Improve the quality of re-sized images by replacing standard GD library with ImageMagick.
|
9 |
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.6.2 =
|
78 |
+
* Added medium_large image size by default
|
79 |
+
* Display version of ImageMagick CLI (thanks @marcissimus)
|
80 |
+
|
81 |
= 1.6.1 =
|
82 |
* Fixed deprecated use of gd_edit_image_support (thanks @chesio)
|
83 |
|