Version Description
- Fixed issue with image not cropping in v4
Download this release
Release Info
Developer | andersthorborg |
Plugin | Advanced Custom Fields: Image Crop Add-on |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.4.1
- acf-image-crop-v4.php +3 -0
- acf-image-crop.php +1 -1
- readme.txt +4 -1
acf-image-crop-v4.php
CHANGED
@@ -764,6 +764,9 @@ class acf_field_image_crop extends acf_field_image
|
|
764 |
// Crop the image using the provided measurements
|
765 |
$image->crop($x1, $y1, $x2 - $x1, $y2 - $y1, $targetW, $targetH);
|
766 |
|
|
|
|
|
|
|
767 |
// Retrieve and remove file extension from array
|
768 |
$originalFileExtension = array_pop($originalFileName);
|
769 |
|
764 |
// Crop the image using the provided measurements
|
765 |
$image->crop($x1, $y1, $x2 - $x1, $y2 - $y1, $targetW, $targetH);
|
766 |
|
767 |
+
// Retrieve original filename and seperate it from its file extension
|
768 |
+
$originalFileName = explode('.', basename($originalImageData['file']));
|
769 |
+
|
770 |
// Retrieve and remove file extension from array
|
771 |
$originalFileExtension = array_pop($originalFileName);
|
772 |
|
acf-image-crop.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced Custom Fields: Image Crop Add-on
|
4 |
Plugin URI: https://github.com/andersthorborg/ACF-Image-Crop
|
5 |
Description: An image field making it possible/required for the user to crop the selected image to the specified image size or dimensions
|
6 |
-
Version: 1.4
|
7 |
Author: Anders Thorborg
|
8 |
Author URI: http://thorb.org
|
9 |
License: GPLv2 or later
|
3 |
Plugin Name: Advanced Custom Fields: Image Crop Add-on
|
4 |
Plugin URI: https://github.com/andersthorborg/ACF-Image-Crop
|
5 |
Description: An image field making it possible/required for the user to crop the selected image to the specified image size or dimensions
|
6 |
+
Version: 1.4.1
|
7 |
Author: Anders Thorborg
|
8 |
Author URI: http://thorb.org
|
9 |
License: GPLv2 or later
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: andersthorborg
|
|
3 |
Tags: afc, advanced custom fields, image crop, image, crop
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.0
|
6 |
-
Stable tag: 1.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -61,6 +61,9 @@ function my_register_fields()
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
64 |
= 1.4 =
|
65 |
* Fixed images with dot in the file name resulting in odd cropped image names
|
66 |
* Fixed issues with php notices in v4
|
3 |
Tags: afc, advanced custom fields, image crop, image, crop
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.0
|
6 |
+
Stable tag: 1.4.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.4.1 =
|
65 |
+
* Fixed issue with image not cropping in v4
|
66 |
+
|
67 |
= 1.4 =
|
68 |
* Fixed images with dot in the file name resulting in odd cropped image names
|
69 |
* Fixed issues with php notices in v4
|