Version Description
Release date: 18th September 2015
- [Fixed] Undefined option notices when running WordPress in debug mode.
Download this release
Release Info
Developer | jepsonrae |
Plugin | Resize Image After Upload |
Version | 1.7.2 |
Comparing to | |
See all releases |
Code changes from version 1.7.1 to 1.7.2
- readme.txt +10 -4
- resize-image-after-upload.php +10 -10
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Resize Image After Upload ===
|
2 |
-
Contributors:
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3W4M254AA3KZG
|
4 |
Tags: image, processing, plugin, resize, upload, resizing, optimization, optimize, optimise, optimisation, downsize, imsanity, bulk resize
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.7.
|
8 |
|
9 |
Behind-the-scenes plugin to automatically resize images when uploaded, restricting size to within specified maximum h/w. Uses standard WP functions.
|
10 |
|
@@ -35,6 +35,12 @@ This plugin uses standard WordPress image resizing functions and will require a
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
= 1.7.1 =
|
39 |
|
40 |
Release date: 26th February 2015
|
@@ -97,4 +103,4 @@ This is a major maintenance release to squash a few long outstanding bugs.
|
|
97 |
* [Update] Update to read me, no feature updates unfortunately.
|
98 |
|
99 |
= 1.0 =
|
100 |
-
* [Added] Initial release.
|
1 |
=== Resize Image After Upload ===
|
2 |
+
Contributors: ShortPixel
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3W4M254AA3KZG
|
4 |
Tags: image, processing, plugin, resize, upload, resizing, optimization, optimize, optimise, optimisation, downsize, imsanity, bulk resize
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.7.2
|
8 |
|
9 |
Behind-the-scenes plugin to automatically resize images when uploaded, restricting size to within specified maximum h/w. Uses standard WP functions.
|
10 |
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 1.7.2 =
|
39 |
+
|
40 |
+
Release date: 18th September 2015
|
41 |
+
|
42 |
+
* [Fixed] Undefined option notices when running WordPress in debug mode.
|
43 |
+
|
44 |
= 1.7.1 =
|
45 |
|
46 |
Release date: 26th February 2015
|
103 |
* [Update] Update to read me, no feature updates unfortunately.
|
104 |
|
105 |
= 1.0 =
|
106 |
+
* [Added] Initial release.
|
resize-image-after-upload.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
Plugin Name: Resize Image After Upload
|
4 |
Plugin URI: https://wordpress.org/plugins/resize-image-after-upload/
|
5 |
Description: Simple plugin to automatically resize uploaded images to within specified maximum width and height. Also has option to force recompression of JPEGs. Configuration options found under <a href="options-general.php?page=resize-after-upload">Settings > Resize Image Upload</a>
|
6 |
-
Author:
|
7 |
-
Version: 1.7.
|
8 |
-
Author URI:
|
9 |
|
10 |
-
Copyright (C)
|
11 |
|
12 |
This program is free software; you can redistribute it and/or
|
13 |
modify it under the terms of the GNU General Public License
|
@@ -24,7 +24,7 @@ along with this program; if not, write to the Free Software
|
|
24 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
25 |
*/
|
26 |
|
27 |
-
$PLUGIN_VERSION = '1.7.
|
28 |
$DEBUG_LOGGER = false;
|
29 |
|
30 |
|
@@ -84,9 +84,9 @@ function jr_uploadresize_options(){
|
|
84 |
$max_height = trim(esc_sql($_POST['maxheight']));
|
85 |
$compression_level = trim(esc_sql($_POST['quality']));
|
86 |
|
87 |
-
$convert_png_to_jpg = trim(esc_sql($_POST['convertpng']));
|
88 |
-
$convert_gif_to_jpg = trim(esc_sql($_POST['convertgif']));
|
89 |
-
$convert_bmp_to_jpg = trim(esc_sql($_POST['convertbmp']));
|
90 |
|
91 |
|
92 |
// If input is not an integer, use previous setting
|
@@ -287,7 +287,7 @@ function jr_uploadresize_options(){
|
|
287 |
|
288 |
</table>
|
289 |
|
290 |
-
<?php /* DEFINED HERE FOR FUTURE RELEASE
|
291 |
<hr style="margin-top:20px; margin-bottom:20px;">
|
292 |
|
293 |
<h3>Image conversion options</h3>
|
@@ -472,4 +472,4 @@ function jr_error_log($message) {
|
|
472 |
if($DEBUG_LOGGER) {
|
473 |
error_log(print_r($message, true));
|
474 |
}
|
475 |
-
}
|
3 |
Plugin Name: Resize Image After Upload
|
4 |
Plugin URI: https://wordpress.org/plugins/resize-image-after-upload/
|
5 |
Description: Simple plugin to automatically resize uploaded images to within specified maximum width and height. Also has option to force recompression of JPEGs. Configuration options found under <a href="options-general.php?page=resize-after-upload">Settings > Resize Image Upload</a>
|
6 |
+
Author: ShortPixel
|
7 |
+
Version: 1.7.2
|
8 |
+
Author URI: https://shortpixel.com
|
9 |
|
10 |
+
Copyright (C) 2017 ShortPixel
|
11 |
|
12 |
This program is free software; you can redistribute it and/or
|
13 |
modify it under the terms of the GNU General Public License
|
24 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
25 |
*/
|
26 |
|
27 |
+
$PLUGIN_VERSION = '1.7.2';
|
28 |
$DEBUG_LOGGER = false;
|
29 |
|
30 |
|
84 |
$max_height = trim(esc_sql($_POST['maxheight']));
|
85 |
$compression_level = trim(esc_sql($_POST['quality']));
|
86 |
|
87 |
+
$convert_png_to_jpg = trim(esc_sql(isset($_POST['convertpng']) ? $_POST['convertpng'] : 'no'));
|
88 |
+
$convert_gif_to_jpg = trim(esc_sql(isset($_POST['convertgif']) ? $_POST['convertgif'] : 'no'));
|
89 |
+
$convert_bmp_to_jpg = trim(esc_sql(isset($_POST['convertbmp']) ? $_POST['convertbmp'] : 'no'));
|
90 |
|
91 |
|
92 |
// If input is not an integer, use previous setting
|
287 |
|
288 |
</table>
|
289 |
|
290 |
+
<?php /* DEFINED HERE FOR FUTURE RELEASE - does not do anything if uncommented
|
291 |
<hr style="margin-top:20px; margin-bottom:20px;">
|
292 |
|
293 |
<h3>Image conversion options</h3>
|
472 |
if($DEBUG_LOGGER) {
|
473 |
error_log(print_r($message, true));
|
474 |
}
|
475 |
+
}
|