Version Description
- Fixed handling of array $crop param
Download this release
Release Info
Developer | tomasz.sita |
Plugin | Manual Image Crop |
Version | 1.10 |
Comparing to | |
See all releases |
Code changes from version 1.09 to 1.10
- lib/ManualImageCropEditorWindow.php +4 -5
- manual-image-crop.php +2 -2
- readme.txt +5 -2
lib/ManualImageCropEditorWindow.php
CHANGED
@@ -127,12 +127,11 @@ class ManualImageCropEditorWindow {
|
|
127 |
$minWidth = min($width / $previewRatio, $previewWidth);
|
128 |
$minHeight = min($height / $previewRatio, $previewHeight);
|
129 |
|
130 |
-
if ($cropMethod
|
131 |
$aspectRatio = ($width / $height);
|
132 |
-
//
|
133 |
-
//
|
134 |
-
//
|
135 |
-
// }
|
136 |
|
137 |
if (1 / $aspectRatio * $minHeight > $sizes[1]) {
|
138 |
$aspectRatio = ($minWidth / $previewHeight);
|
127 |
$minWidth = min($width / $previewRatio, $previewWidth);
|
128 |
$minHeight = min($height / $previewRatio, $previewHeight);
|
129 |
|
130 |
+
if ($cropMethod != 0) {
|
131 |
$aspectRatio = ($width / $height);
|
132 |
+
// if ($aspectRatio * $minWidth > $sizes[0]) {
|
133 |
+
// $aspectRatio = ($previewWidth / $minHeight);
|
134 |
+
// }
|
|
|
135 |
|
136 |
if (1 / $aspectRatio * $minHeight > $sizes[1]) {
|
137 |
$aspectRatio = ($minWidth / $previewHeight);
|
manual-image-crop.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Manual Image Crop
|
4 |
Plugin URI: http://www.rocketmill.co.uk/wordpress-plugin-manual-image-crop
|
5 |
Description: Plugin allows you to manually crop all the image sizes registered in your WordPress theme (in particular featured image). Simply click on the "Crop" link next to any image in your media library and select the area of the image you want to crop.
|
6 |
-
Version: 1.
|
7 |
Author: Tomasz Sita
|
8 |
Author URI: https://github.com/tomaszsita
|
9 |
License: GPL2
|
@@ -11,7 +11,7 @@ Text Domain: microp
|
|
11 |
Domain Path: /languages/
|
12 |
*/
|
13 |
|
14 |
-
define('mic_VERSION', '1.
|
15 |
|
16 |
include_once(dirname(__FILE__) . '/lib/ManualImageCropSettingsPage.php');
|
17 |
|
3 |
Plugin Name: Manual Image Crop
|
4 |
Plugin URI: http://www.rocketmill.co.uk/wordpress-plugin-manual-image-crop
|
5 |
Description: Plugin allows you to manually crop all the image sizes registered in your WordPress theme (in particular featured image). Simply click on the "Crop" link next to any image in your media library and select the area of the image you want to crop.
|
6 |
+
Version: 1.10
|
7 |
Author: Tomasz Sita
|
8 |
Author URI: https://github.com/tomaszsita
|
9 |
License: GPL2
|
11 |
Domain Path: /languages/
|
12 |
*/
|
13 |
|
14 |
+
define('mic_VERSION', '1.10');
|
15 |
|
16 |
include_once(dirname(__FILE__) . '/lib/ManualImageCropSettingsPage.php');
|
17 |
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Manual Image Crop ===
|
2 |
Contributors: tomasz.sita
|
3 |
Tags: crop, cropping, thumbnail, featured image, gallery, images, picture, image, image area
|
4 |
-
Tested up to: 4.2.
|
5 |
Requires at least: 3.5
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WB5ZQWGUM7T96
|
9 |
-
Stable tag: 1.
|
10 |
|
11 |
Plugin allows you to manually crop all the image sizes registered in your WordPress theme (in particular featured image).
|
12 |
|
@@ -47,6 +47,9 @@ Automatically:
|
|
47 |
* When the plugin has been installed, Click 'Activate'
|
48 |
|
49 |
== Changelog ==
|
|
|
|
|
|
|
50 |
= 1.09 =
|
51 |
* Dutch translation added
|
52 |
* Better error handling
|
1 |
=== Manual Image Crop ===
|
2 |
Contributors: tomasz.sita
|
3 |
Tags: crop, cropping, thumbnail, featured image, gallery, images, picture, image, image area
|
4 |
+
Tested up to: 4.2.2
|
5 |
Requires at least: 3.5
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WB5ZQWGUM7T96
|
9 |
+
Stable tag: 1.10
|
10 |
|
11 |
Plugin allows you to manually crop all the image sizes registered in your WordPress theme (in particular featured image).
|
12 |
|
47 |
* When the plugin has been installed, Click 'Activate'
|
48 |
|
49 |
== Changelog ==
|
50 |
+
= 1.10 =
|
51 |
+
* Fixed handling of array $crop param
|
52 |
+
|
53 |
= 1.09 =
|
54 |
* Dutch translation added
|
55 |
* Better error handling
|