Image Watermark - Version 1.6.6

Version Description

  • Tweak: PHP 7.3 compatibility
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Image Watermark
Version 1.6.6
Comparing to
See all releases

Code changes from version 1.6.5 to 1.6.6

Files changed (2) hide show
  1. image-watermark.php +7 -6
  2. readme.txt +8 -6
image-watermark.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: Image Watermark
4
  Description: Image Watermark allows you to automatically watermark images uploaded to the WordPress Media Library and bulk watermark previously uploaded images.
5
- Version: 1.6.5
6
  Author: dFactory
7
- Author URI: http://www.dfactory.eu/
8
- Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
  Text Domain: image-watermark
@@ -32,7 +32,7 @@ define( 'IMAGE_WATERMARK_PATH', plugin_dir_path( __FILE__ ) );
32
  * Image Watermark class.
33
  *
34
  * @class Image_Watermark
35
- * @version 1.6.5
36
  */
37
  final class Image_Watermark {
38
 
@@ -81,7 +81,7 @@ final class Image_Watermark {
81
  'backup_quality' => 90
82
  )
83
  ),
84
- 'version' => '1.6.5'
85
  );
86
  public $options = array();
87
 
@@ -1125,7 +1125,8 @@ wp-logo-jpg + +
1125
  case 'image/png':
1126
  $image = imagecreatefrompng( $filepath );
1127
 
1128
- imagefilledrectangle( $image, 0, 0, imagesx( $image ), imagesy( $image ), imagecolorallocatealpha( $image, 255, 255, 255, 127 ) );
 
1129
  break;
1130
 
1131
  default:
2
  /*
3
  Plugin Name: Image Watermark
4
  Description: Image Watermark allows you to automatically watermark images uploaded to the WordPress Media Library and bulk watermark previously uploaded images.
5
+ Version: 1.6.6
6
  Author: dFactory
7
+ Author URI: https://dfactory.eu/
8
+ Plugin URI: https://dfactory.eu/plugins/image-watermark/
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
  Text Domain: image-watermark
32
  * Image Watermark class.
33
  *
34
  * @class Image_Watermark
35
+ * @version 1.6.6
36
  */
37
  final class Image_Watermark {
38
 
81
  'backup_quality' => 90
82
  )
83
  ),
84
+ 'version' => '1.6.6'
85
  );
86
  public $options = array();
87
 
1125
  case 'image/png':
1126
  $image = imagecreatefrompng( $filepath );
1127
 
1128
+ if ( is_resource( $image ) )
1129
+ imagefilledrectangle( $image, 0, 0, imagesx( $image ), imagesy( $image ), imagecolorallocatealpha( $image, 255, 255, 255, 127 ) );
1130
  break;
1131
 
1132
  default:
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Image Watermark ===
2
  Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
- Tags: image, images, picture, photo, watermark, watermarking, protection, image protection, image security, plugin
5
  Requires at least: 4.0
6
- Tested up to: 5.1
7
- Stable tag: 1.6.5
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -54,6 +54,9 @@ No questions yet.
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.6.5 =
58
  * Fix: Improved support for PHP 7 and above
59
  * Fix: Backup folders handling of date based organized uploads
@@ -184,6 +187,5 @@ Initial release
184
 
185
  == Upgrade Notice ==
186
 
187
- = 1.6.5 =
188
- * Fix: Improved support for PHP 7 and above
189
- * Fix: Backup folders handling of date based organized uploads
1
  === Image Watermark ===
2
  Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
+ Tags: image, images, picture, photo, watermark, watermarking, protection, image protection, image security
5
  Requires at least: 4.0
6
+ Tested up to: 5.3
7
+ Stable tag: 1.6.6
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.6.6 =
58
+ * Tweak: PHP 7.3 compatibility
59
+
60
  = 1.6.5 =
61
  * Fix: Improved support for PHP 7 and above
62
  * Fix: Backup folders handling of date based organized uploads
187
 
188
  == Upgrade Notice ==
189
 
190
+ = 1.6.6 =
191
+ * Tweak: PHP 7.3 compatibility