Image Watermark - Version 1.5.1

Version Description

  • New: Introducing plugin documentation
  • Tweak: Improved transparent watermark support
Download this release

Release Info

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

Code changes from version 1.5.0 to 1.5.1

image-watermark.php CHANGED
@@ -2,7 +2,7 @@
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.5.0
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
@@ -29,7 +29,7 @@ if ( ! defined( 'ABSPATH' ) )
29
  * Image Watermark class.
30
  *
31
  * @class Image_Watermark
32
- * @version 1.5.0
33
  */
34
  class Image_Watermark {
35
 
@@ -72,7 +72,7 @@ class Image_Watermark {
72
  'forlogged' => 0,
73
  ),
74
  ),
75
- 'version' => '1.5.0'
76
  );
77
  public $options = array();
78
 
@@ -437,7 +437,7 @@ class Image_Watermark {
437
  <h3 class="hndle">' . __( 'Image Watermark', 'image-watermark' ) . ' ' . $this->defaults['version'] . '</h3>
438
  <div class="inside">
439
  <h4 class="inner">' . __( 'Need support?', 'image-watermark' ) . '</h4>
440
- <p class="inner">' . __( 'If you are having problems with this plugin, please talk about them in the', 'image-watermark' ) . ' <a href="http://www.dfactory.eu/support/?utm_source=image-watermark-settings&utm_medium=link&utm_campaign=support" target="_blank" title="' . __( 'Support forum', 'image-watermark' ) . '">' . __( 'Support forum', 'image-watermark' ) . '</a></p>
441
  <hr />
442
  <h4 class="inner">' . __( 'Do you like this plugin?', 'image-watermark' ) . '</h4>
443
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="inner">
@@ -1199,8 +1199,10 @@ class Image_Watermark {
1199
 
1200
  case 'image/png':
1201
  $res = imagecreatefrompng( $filepath );
1202
- $transparent = imagecolorallocatealpha( $res, 255, 255, 254, 127 );
 
1203
  imagefilledrectangle( $res, 0, 0, imagesx( $res ), imagesy( $res ), $transparent );
 
1204
  return $res;
1205
 
1206
  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.5.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
29
  * Image Watermark class.
30
  *
31
  * @class Image_Watermark
32
+ * @version 1.5.1
33
  */
34
  class Image_Watermark {
35
 
72
  'forlogged' => 0,
73
  ),
74
  ),
75
+ 'version' => '1.5.1'
76
  );
77
  public $options = array();
78
 
437
  <h3 class="hndle">' . __( 'Image Watermark', 'image-watermark' ) . ' ' . $this->defaults['version'] . '</h3>
438
  <div class="inside">
439
  <h4 class="inner">' . __( 'Need support?', 'image-watermark' ) . '</h4>
440
+ <p class="inner">' . __( 'If you are having problems with this plugin, checkout plugin', 'image-watermark' ) . ' <a href="http://www.dfactory.eu/docs/image-watermark-plugin/?utm_source=image-watermark-settings&utm_medium=link&utm_campaign=documentation" target="_blank" title="' . __( 'Documentation', 'image-watermark' ) . '">' . __( 'Documentation', 'image-watermark' ) . '</a> ' . __( 'or talk about them in the', 'image-watermark' ) . ' <a href="http://www.dfactory.eu/support/?utm_source=image-watermark-settings&utm_medium=link&utm_campaign=support" target="_blank" title="' . __( 'Support forum', 'image-watermark' ) . '">' . __( 'Support forum', 'image-watermark' ) . '</a></p>
441
  <hr />
442
  <h4 class="inner">' . __( 'Do you like this plugin?', 'image-watermark' ) . '</h4>
443
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="inner">
1199
 
1200
  case 'image/png':
1201
  $res = imagecreatefrompng( $filepath );
1202
+ imagesavealpha( $res, true );
1203
+ $transparent = imagecolorallocatealpha( $res, 255, 255, 255, 127 );
1204
  imagefilledrectangle( $res, 0, 0, imagesx( $res ), imagesy( $res ), $transparent );
1205
+
1206
  return $res;
1207
 
1208
  default:
languages/image-watermark-pl_PL.mo CHANGED
Binary file
languages/image-watermark-pl_PL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-05-15 19:56+0100\n"
6
- "PO-Revision-Date: 2015-05-15 20:44+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: Digital Factory <info@digitalfactory.pl>\n"
9
  "Language: pl_PL\n"
@@ -14,7 +14,7 @@ msgstr ""
14
  "esc_attr_e\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Generator: Poedit 1.7.5\n"
18
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
@@ -97,9 +97,16 @@ msgid "Need support?"
97
  msgstr "Potrzebujesz pomocy?"
98
 
99
  #: ../image-watermark.php:440
100
- msgid ""
101
- "If you are having problems with this plugin, please talk about them in the"
102
- msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o tym na"
 
 
 
 
 
 
 
103
 
104
  #: ../image-watermark.php:440
105
  msgid "Support forum"
@@ -400,14 +407,18 @@ msgid "Watermark will not be applied when no image sizes are selected."
400
  msgstr ""
401
  "Znak wodny nie zostanie dodany jeśli nie zostały określone wielkości plików."
402
 
403
- #: ../image-watermark.php:1247
404
  msgid "Support"
405
  msgstr "Forum pomocy"
406
 
407
- #: ../image-watermark.php:1270
408
  msgid "Settings"
409
  msgstr "Ustawienia"
410
 
 
 
 
 
411
  #~ msgid ""
412
  #~ "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or "
413
  #~ "higher."
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-07-16 20:10+0200\n"
6
+ "PO-Revision-Date: 2015-07-16 20:10+0200\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: Digital Factory <info@digitalfactory.pl>\n"
9
  "Language: pl_PL\n"
14
  "esc_attr_e\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Generator: Poedit 1.8.2\n"
18
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
97
  msgstr "Potrzebujesz pomocy?"
98
 
99
  #: ../image-watermark.php:440
100
+ msgid "If you are having problems with this plugin, checkout plugin"
101
+ msgstr "Jeśli masz jakiekolwiek problemy z wtyczką, sprawdź jej"
102
+
103
+ #: ../image-watermark.php:440
104
+ msgid "Documentation"
105
+ msgstr "Dokumentację"
106
+
107
+ #: ../image-watermark.php:440
108
+ msgid "or talk about them in the"
109
+ msgstr "lub napisz o nich na"
110
 
111
  #: ../image-watermark.php:440
112
  msgid "Support forum"
407
  msgstr ""
408
  "Znak wodny nie zostanie dodany jeśli nie zostały określone wielkości plików."
409
 
410
+ #: ../image-watermark.php:1249
411
  msgid "Support"
412
  msgstr "Forum pomocy"
413
 
414
+ #: ../image-watermark.php:1272
415
  msgid "Settings"
416
  msgstr "Ustawienia"
417
 
418
+ #~ msgid ""
419
+ #~ "If you are having problems with this plugin, please talk about them in the"
420
+ #~ msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o tym na"
421
+
422
  #~ msgid ""
423
  #~ "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or "
424
  #~ "higher."
languages/image-watermark.pot CHANGED
@@ -1,7 +1,8 @@
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
- "POT-Creation-Date: 2015-05-15 19:55+0100\n"
5
  "PO-Revision-Date: 2015-05-15 19:55+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.pl>\n"
@@ -9,7 +10,7 @@ msgstr ""
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.5\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
14
  "_n:1,2\n"
15
  "X-Poedit-Basepath: .\n"
@@ -91,8 +92,15 @@ msgid "Need support?"
91
  msgstr ""
92
 
93
  #: ../image-watermark.php:440
94
- msgid ""
95
- "If you are having problems with this plugin, please talk about them in the"
 
 
 
 
 
 
 
96
  msgstr ""
97
 
98
  #: ../image-watermark.php:440
@@ -372,10 +380,10 @@ msgstr ""
372
  msgid "Watermark will not be applied when no image sizes are selected."
373
  msgstr ""
374
 
375
- #: ../image-watermark.php:1247
376
  msgid "Support"
377
  msgstr ""
378
 
379
- #: ../image-watermark.php:1270
380
  msgid "Settings"
381
  msgstr ""
1
+ #, fuzzy
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WordPress Watermark\n"
5
+ "POT-Creation-Date: 2015-07-16 20:09+0200\n"
6
  "PO-Revision-Date: 2015-05-15 19:55+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.pl>\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.2\n"
14
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
15
  "_n:1,2\n"
16
  "X-Poedit-Basepath: .\n"
92
  msgstr ""
93
 
94
  #: ../image-watermark.php:440
95
+ msgid "If you are having problems with this plugin, checkout plugin"
96
+ msgstr ""
97
+
98
+ #: ../image-watermark.php:440
99
+ msgid "Documentation"
100
+ msgstr ""
101
+
102
+ #: ../image-watermark.php:440
103
+ msgid "or talk about them in the"
104
  msgstr ""
105
 
106
  #: ../image-watermark.php:440
380
  msgid "Watermark will not be applied when no image sizes are selected."
381
  msgstr ""
382
 
383
+ #: ../image-watermark.php:1249
384
  msgid "Support"
385
  msgstr ""
386
 
387
+ #: ../image-watermark.php:1272
388
  msgid "Settings"
389
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: image, images, picture, photo, watermark, watermarking, protection, image protection, image security, plugin
5
  Requires at least: 3.5
6
  Tested up to: 4.2.2
7
- Stable tag: 1.5.0
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -14,7 +14,7 @@ Image Watermark allows you to automatically watermark images uploaded to the Wor
14
 
15
  [Image Watermark](http://www.dfactory.eu/plugins/image-watermark/) allows you to automatically watermark images uploaded to the WordPress Media Library and bulk watermark previously uploaded images.
16
 
17
- For more information, check out plugin page at [dFactory](http://www.dfactory.eu/) or plugin [support forum](http://www.dfactory.eu/support/forum/image-watermark/).
18
 
19
  = Features include: =
20
 
@@ -61,6 +61,10 @@ No questions yet.
61
 
62
  == Changelog ==
63
 
 
 
 
 
64
  = 1.5.0 =
65
  * Tweak: Plugins setting adjusted to WP settings API
66
  * Tweak: General code cleanup
@@ -143,7 +147,6 @@ Initial release
143
 
144
  == Upgrade Notice ==
145
 
146
- = 1.5.0 =
147
- * Tweak: Plugins setting adjusted to WP settings API
148
- * Tweak: General code cleanup
149
- * Tweak: Added Media Library bulk watermarking notice
4
  Tags: image, images, picture, photo, watermark, watermarking, protection, image protection, image security, plugin
5
  Requires at least: 3.5
6
  Tested up to: 4.2.2
7
+ Stable tag: 1.5.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
14
 
15
  [Image Watermark](http://www.dfactory.eu/plugins/image-watermark/) allows you to automatically watermark images uploaded to the WordPress Media Library and bulk watermark previously uploaded images.
16
 
17
+ For more information, check out plugin page at [dFactory](http://www.dfactory.eu/), [documentation page](https://www.dfactory.eu/docs/image-watermark-plugin/) or plugin [support forum](http://www.dfactory.eu/support/forum/image-watermark/).
18
 
19
  = Features include: =
20
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.5.1 =
65
+ * New: Introducing [plugin documentation](https://www.dfactory.eu/docs/image-watermark-plugin/)
66
+ * Tweak: Improved transparent watermark support
67
+
68
  = 1.5.0 =
69
  * Tweak: Plugins setting adjusted to WP settings API
70
  * Tweak: General code cleanup
147
 
148
  == Upgrade Notice ==
149
 
150
+ = 1.5.1 =
151
+ * New: Introducing [plugin documentation](https://www.dfactory.eu/docs/image-watermark-plugin/)
152
+ * Tweak: Improved transparent watermark support
 
screenshot-1.png DELETED
Binary file
screenshot-2.png DELETED
Binary file