ImageMagick Engine - Version 1.2.2

Version Description

  • Fixed filepath with spaces on Windows
  • Tested with WordPress 3.1.2
  • Added question to FAQ
Download this release

Release Info

Developer orangelab
Plugin Icon 128x128 ImageMagick Engine
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (2) hide show
  1. imagemagick-engine.php +4 -3
  2. readme.txt +16 -2
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: http://www.orangelab.se
8
- Version: 1.2.1
9
  Text Domain: imagemagick-engine
10
 
11
  Copyright 2010, 2011 Orangelab
@@ -36,6 +36,7 @@
36
  * - edit post insert image: add custom sizes?
37
  * - admin: smarter find path to executable (maybe try 'which' or package handler?)
38
  * - allow customization of command line / class functions (safely!), check memory limit
 
39
  * - handle TIF and other IM formats if possible
40
  * - can we use IM instead of GD in more places?
41
  */
@@ -486,7 +487,7 @@ function ime_im_cli_resize($old_file, $new_file, $width, $height, $crop) {
486
  $old_file = addslashes($old_file);
487
  $new_file = addslashes($new_file);
488
 
489
- $cmd = "\"$cmd\" -limit memory 150mb -limit map 128mb -size {$width}x{$height} '{$old_file}' -resize {$width}x{$height}";
490
  if ($crop)
491
  $cmd .= "^ -gravity center -extent {$width}x{$height}";
492
 
@@ -494,7 +495,7 @@ function ime_im_cli_resize($old_file, $new_file, $width, $height, $crop) {
494
  if (is_numeric($quality) && $quality >= 0 && $quality <= 100 && ime_im_filename_is_jpg($new_file))
495
  $cmd .= " -quality " . intval($quality);
496
 
497
- $cmd .= " '{$new_file}'";
498
  exec($cmd);
499
 
500
  return file_exists($new_file);
5
  Description: Improve the quality of re-sized images by replacing standard GD library with ImageMagick
6
  Author: Orangelab
7
  Author URI: http://www.orangelab.se
8
+ Version: 1.2.2
9
  Text Domain: imagemagick-engine
10
 
11
  Copyright 2010, 2011 Orangelab
36
  * - edit post insert image: add custom sizes?
37
  * - admin: smarter find path to executable (maybe try 'which' or package handler?)
38
  * - allow customization of command line / class functions (safely!), check memory limit
39
+ * - unsharp mask, sharpening level options (perhaps on a picture-by-picture basis)
40
  * - handle TIF and other IM formats if possible
41
  * - can we use IM instead of GD in more places?
42
  */
487
  $old_file = addslashes($old_file);
488
  $new_file = addslashes($new_file);
489
 
490
+ $cmd = "\"$cmd\" -limit memory 150mb -limit map 128mb -size {$width}x{$height} \"{$old_file}\" -resize {$width}x{$height}";
491
  if ($crop)
492
  $cmd .= "^ -gravity center -extent {$width}x{$height}";
493
 
495
  if (is_numeric($quality) && $quality >= 0 && $quality <= 100 && ime_im_filename_is_jpg($new_file))
496
  $cmd .= " -quality " . intval($quality);
497
 
498
+ $cmd .= " \"{$new_file}\"";
499
  exec($cmd);
500
 
501
  return file_exists($new_file);
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: orangelab
3
  Tags: image, images, picture, imagemagick, gd
4
  Requires at least: 2.9
5
- Tested up to: 3.1
6
- Stable tag: 1.2.1
7
 
8
  Improve the quality of re-sized images by replacing standard GD library with ImageMagick.
9
 
@@ -58,6 +58,15 @@ Most Linux distributions have a package for "ImageMagick". Some have a package f
58
 
59
  You can also find binary releases at http://www.imagemagick.org including a Windows installer.
60
 
 
 
 
 
 
 
 
 
 
61
  == Screenshots ==
62
 
63
  1. Example image: ImageMagick vs GD
@@ -65,6 +74,11 @@ You can also find binary releases at http://www.imagemagick.org including a Wind
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
68
  = 1.2.1 =
69
  * Fix deprecated warning
70
  * Tested with WordPress 3.1
2
  Contributors: orangelab
3
  Tags: image, images, picture, imagemagick, gd
4
  Requires at least: 2.9
5
+ Tested up to: 3.1.2
6
+ Stable tag: 1.2.2
7
 
8
  Improve the quality of re-sized images by replacing standard GD library with ImageMagick.
9
 
58
 
59
  You can also find binary releases at http://www.imagemagick.org including a Windows installer.
60
 
61
+ = I get a fatal error when activating plugin =
62
+
63
+ Some webhosts (1and1 for example) need to add a work-around to the .htaccess file.
64
+
65
+ You might have to add the following line to your .htaccess file:
66
+ AddType x-mapp-php5 .php
67
+
68
+ You'll probably have problems with various other plugins too unless you fix this.
69
+
70
  == Screenshots ==
71
 
72
  1. Example image: ImageMagick vs GD
74
 
75
  == Changelog ==
76
 
77
+ = 1.2.2 =
78
+ * Fixed filepath with spaces on Windows
79
+ * Tested with WordPress 3.1.2
80
+ * Added question to FAQ
81
+
82
  = 1.2.1 =
83
  * Fix deprecated warning
84
  * Tested with WordPress 3.1