Image Watermark - Version 1.1.2

Version Description

  • New: Image quality option
  • New: Image format selection (progressive or baseline)
  • Fix: Error when getimagesize() is not available on some servers
  • Tweak: Files & class naming conventions
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

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.
5
- Version: 1.1.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
@@ -27,7 +27,8 @@ if(version_compare(PHP_VERSION, '5.0', '<') || version_compare($wp_version, '3.5
27
  wp_die(__('Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher.'));
28
  }
29
 
30
- class ImageWatermark
 
31
  {
32
  private $_messages = array();
33
  private $_image_sizes = array();
@@ -54,7 +55,9 @@ class ImageWatermark
54
  'offset_height' => 0,
55
  'absolute_width' => 0,
56
  'absolute_height' => 0,
57
- 'transparent' => 50
 
 
58
  ),
59
  'df_image_protection' => array(
60
  'rightclick' => 0,
@@ -257,7 +260,7 @@ class ImageWatermark
257
  {
258
  wp_enqueue_script(
259
  'apply-watermark',
260
- plugins_url('/js/apply-watermark.js', __FILE__)
261
  );
262
 
263
  wp_localize_script(
@@ -275,19 +278,13 @@ class ImageWatermark
275
 
276
  wp_enqueue_script(
277
  'upload-manager',
278
- plugins_url('/js/upload-manager.js', __FILE__)
279
- );
280
-
281
- wp_enqueue_script(
282
- 'wp-like',
283
- plugins_url('js/wp-like.js', __FILE__),
284
- array('jquery', 'jquery-ui-core', 'jquery-ui-button')
285
  );
286
 
287
  wp_enqueue_script(
288
  'watermark-admin-script',
289
- plugins_url('js/admin.js', __FILE__),
290
- array('jquery', 'wp-like')
291
  );
292
 
293
  wp_localize_script(
@@ -304,7 +301,6 @@ class ImageWatermark
304
  )
305
  );
306
 
307
- wp_enqueue_style('thickbox');
308
  wp_enqueue_style('watermark-style', plugins_url('css/image-watermark.css', __FILE__));
309
  wp_enqueue_style('wp-like-ui-theme', plugins_url('css/wp-like-ui-theme.css', __FILE__));
310
  }
@@ -323,7 +319,11 @@ class ImageWatermark
323
  return;
324
  }
325
 
326
- wp_enqueue_script('no-right-click', plugins_url('js/no-right-click.js', __FILE__));
 
 
 
 
327
  wp_localize_script(
328
  'no-right-click',
329
  'norightclick_args',
@@ -439,6 +439,7 @@ class ImageWatermark
439
  break;
440
 
441
  case 'transparent':
 
442
  case 'width':
443
  $tmp[$image_option] = (isset($_POST[$option][$image_option]) ? ($_POST[$option][$image_option] <= 0 ? 0 : ($_POST[$option][$image_option] >= 100 ? 100 : (int)$_POST[$option][$image_option])) : $this->_options[$option][$image_option]);
444
  break;
@@ -456,6 +457,10 @@ class ImageWatermark
456
  $tmp[$image_option] = (isset($_POST[$option][$image_option]) ? (int)$_POST[$option][$image_option] : $this->_options[$option][$image_option]);
457
  break;
458
 
 
 
 
 
459
  case 'position':
460
  $positions = array();
461
 
@@ -506,16 +511,26 @@ class ImageWatermark
506
 
507
  $watermark_image = get_option('df_watermark_image');
508
  $image_protection = get_option('df_image_protection');
 
509
 
510
  //update-fix from 1.1.0 to later versions
511
  $watermark_image['manual_watermarking'] = (isset($watermark_image['manual_watermarking']) ? $watermark_image['manual_watermarking'] : $this->_options['df_watermark_image']['manual_watermarking']);
512
 
513
- if(($watermark_image['plugin_off'] === 0 || $watermark_image['manual_watermarking'] === 1) && $watermark_image['url'] === 0)
 
 
514
  {
515
- echo '
516
- <div class="error">
517
- <p>'.__('Watermarks will not be applied when <b>watermark image is not set</b>.', 'image-watermark').'</p>
518
- </div>';
 
 
 
 
 
 
 
519
  }
520
  ?>
521
  <div class="wrap">
@@ -562,14 +577,13 @@ class ImageWatermark
562
  <th scope="row"><?php echo __('Enable watermark for', 'image-watermark'); ?></th>
563
  <td class="wr_width">
564
  <fieldset class="wr_width">
565
- <?php $watermark_on = array_keys(get_option('df_watermark_on')); ?>
566
  <div id="thumbnail-select">
567
  <?php foreach($this->_image_sizes as $image_size) : ?>
568
- <input name="df_watermark_on[<?php echo $image_size; ?>]" type="checkbox" id="<?php echo $image_size; ?>" value="1" <?php echo (in_array($image_size, $watermark_on) ? ' checked="checked"' : ''); ?> />
569
  <label for="<?php echo $image_size; ?>"><?php echo $image_size; ?></label>
570
  <?php endforeach; ?>
571
  </div>
572
- <p class="howto"><?php echo __('Check image sizes on which watermark should appear.', 'image-watermark'); ?></p>
573
  <?php $watermark_cpt_on = array_keys(get_option('df_watermark_cpt_on'));
574
  if(in_array('everywhere', $watermark_cpt_on) && count($watermark_cpt_on) === 1)
575
  { $first_checked = TRUE; $second_checked = FALSE; $watermark_cpt_on = array(); }
@@ -668,8 +682,8 @@ class ImageWatermark
668
  else
669
  {
670
  $imageFullSize = wp_get_attachment_image_src($watermark_image['url'], 'full', FALSE);
671
- $imgSelectedInfo = getimagesize($imageFullSize[0]);
672
- echo __('Original size', 'image-watermark').': '.$imgSelectedInfo[0].' px / '.$imgSelectedInfo[1].' px';
673
  }
674
  ?>
675
  </p>
@@ -677,88 +691,111 @@ class ImageWatermark
677
  </td>
678
  </tr>
679
  <tr valign="top">
680
- <th scope="row"><?php echo __('Watermark size', 'image-watermark'); ?></th>
681
  <td class="wr_width">
682
  <fieldset class="wr_width">
683
  <div id="watermark-type">
684
- <label for="type1"><?php echo __('original', 'image-watermark'); ?></label>
685
- <input type="radio" id="type1" value="0" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 0, TRUE); ?> />
686
- <label for="type2"><?php echo __('custom', 'image-watermark'); ?></label>
687
- <input type="radio" id="type2" value="1" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 1, TRUE); ?> />
688
- <label for="type3"><?php echo __('scaled', 'image-watermark'); ?></label>
689
- <input type="radio" id="type3" value="2" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 2, TRUE); ?> />
690
  </div>
691
- <p class="howto"><?php echo __('Select method of aplying watermark size.', 'image-watermark'); ?></p>
692
  </fieldset>
693
  </td>
694
  </tr>
695
  <tr valign="top" id="watermark_size_custom">
696
- <th scope="row"><?php echo __('Watermark custom size', 'image-watermark'); ?></th>
697
  <td class="wr_width">
698
  <fieldset class="wr_width">
699
- <?php echo __('x:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_width]" value="<?php echo $watermark_image['absolute_width']; ?>"> <?php echo __('px', 'image-watermark'); ?>
700
  <br />
701
- <?php echo __('y:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_height]" value="<?php echo $watermark_image['absolute_height']; ?>"> <?php echo __('px','image-watermark'); ?>
702
  </fieldset>
703
- <p class="howto"><?php echo __('Those dimensions will be used if "custom" method is selected above.', 'image-watermark'); ?></p>
704
  </td>
705
  </tr>
706
  <tr valign="top" id="watermark_size_scale">
707
- <th scope="row"><?php echo __('Scale of watermark in relation to image width', 'image-watermark'); ?></th>
708
  <td class="wr_width">
709
  <fieldset class="wr_width">
710
- <input type="text" size="5" name="df_watermark_image[width]" value="<?php echo $watermark_image['width']; ?>">%
711
  </fieldset>
712
- <p class="howto"><?php echo __('This value will be used if "scaled" method if selected above. <br />Enter a number ranging from 0 to 100. 100 makes width of watermark image equal to width of the image it is applied to.','image-watermark'); ?></p>
713
  </td>
714
  </tr>
715
  <tr valign="top">
716
- <th scope="row"><?php echo __('Watermark transparency / opacity','image-watermark'); ?></th>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
717
  <td class="wr_width">
718
  <fieldset class="wr_width">
719
- <input type="text" size="5" name="df_watermark_image[transparent]" value="<?php echo $watermark_image['transparent']; ?>">%
 
 
 
 
 
720
  </fieldset>
721
- <p class="howto"><?php echo __('Enter a number ranging from 0 to 100. 0 makes watermark image completely transparent, 100 shows it as is.','image-watermark'); ?></p>
722
  </td>
723
  </tr>
724
  </table>
725
  <input type="hidden" name="action" value="update" />
726
  <hr />
727
- <h3><?php echo __('Image protection','image-watermark'); ?></h3>
728
  <table id="watermark-protection-table" class="form-table">
729
  <tr>
730
- <th><?php echo __('Disable right mouse click on images','image-watermark'); ?></th>
731
  <td><input type="checkbox" <?php checked($image_protection['rightclick'], 1, TRUE); ?> value="1" name="df_image_protection[rightclick]"></td>
732
  </tr>
733
  <tr>
734
- <th><?php echo __('Prevent drag and drop','image-watermark'); ?></th>
735
  <td><input type="checkbox" <?php checked($image_protection['draganddrop'], 1, TRUE); ?> value="1" name="df_image_protection[draganddrop]"></td>
736
  </tr>
737
  <tr>
738
- <th><?php echo __('Enable image protection for logged-in users also','image-watermark'); ?></th>
739
  <td><input type="checkbox" <?php checked($image_protection['forlogged'], 1, TRUE); ?> value="1" name="df_image_protection[forlogged]"></td>
740
  </tr>
741
  </table>
742
  <hr />
743
- <input type="submit" id="watermark-submit" class="button button-primary" name="submit" value="<?php echo __('Save Changes','image-watermark'); ?>" />
744
  </form>
745
  </div>
746
  </div>
747
 
748
  <div id="df-credits" class="postbox-container">
749
- <h3 class="metabox-title"><?php _e('Image Watermark','image-watermark'); ?></h3>
750
  <div class="inner">
751
- <h3><?php _e('Need support?','image-watermark'); ?></h3>
752
- <p><?php _e('If you are having problems with this plugin, please talk about them in the','image-watermark'); ?> <a href="http://dfactory.eu/support/" target="_blank" title="<?php _e('Support forum','image-watermark'); ?>"><?php _e('Support forum','image-watermark'); ?></a></p>
753
  <hr />
754
- <h3><?php _e('Do you like this plugin?','image-watermark'); ?></h3>
755
- <p><a href="http://wordpress.org/support/view/plugin-reviews/image-watermark?filter=5" target="_blank" title="<?php _e('Rate it 5','image-watermark'); ?>"><?php _e('Rate it 5','image-watermark'); ?></a> <?php _e('on WordPress.org','image-watermark'); ?><br />
756
- <?php _e('Blog about it & link to the','image-watermark'); ?> <a href="http://dfactory.eu/plugins/image-watermark/" target="_blank" title="<?php _e('plugin page','image-watermark'); ?>"><?php _e('plugin page','image-watermark'); ?></a><br />
757
- <?php _e('Check out our other','image-watermark'); ?> <a href="http://dfactory.eu/plugins/" target="_blank" title="<?php _e('WordPress plugins','image-watermark'); ?>"><?php _e('WordPress plugins','image-watermark'); ?></a>
758
  </p>
759
 
760
  <hr />
761
- <p class="df-link"><?php echo __('Created by', 'restrict-widgets'); ?><a href="http://www.dfactory.eu" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="<?php echo plugins_url( 'images/logo-dfactory.png' , __FILE__ ); ?>" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
762
 
763
  </div>
764
  </div>
@@ -823,8 +860,12 @@ class ImageWatermark
823
  }
824
  }
825
 
 
 
826
  //apply watermark
827
  $this->do_watermark($filepath);
 
 
828
  }
829
  }
830
  }
@@ -849,18 +890,24 @@ class ImageWatermark
849
  $options[$option] = get_option($option);
850
  }
851
 
 
 
852
  //get image mime type
853
  $mime_type = wp_check_filetype($filepath);
854
- $mime_type = $mime_type['type'];
855
 
856
  //get image resource
857
- if(($image = $this->get_image_resource($filepath, $mime_type)) !== FALSE)
858
  {
859
  //add watermark image to image
860
  if($this->add_watermark_image($image, $options) !== FALSE)
861
  {
 
 
 
 
 
862
  //save watermarked image
863
- $this->save_image_file($image, $mime_type, $filepath);
864
  }
865
  }
866
  }
@@ -875,9 +922,10 @@ class ImageWatermark
875
  */
876
  private function add_watermark_image($image, array $opt)
877
  {
878
- //get size and url of watermark
879
  $size_type = $opt['df_watermark_image']['watermark_size_type'];
880
- $url = wp_get_attachment_url($opt['df_watermark_image']['url']);
 
881
  $watermark_file = getimagesize($url);
882
 
883
  switch($watermark_file['mime'])
@@ -911,21 +959,16 @@ class ImageWatermark
911
  }
912
  elseif($size_type === 2) //scale
913
  {
914
- $size = $opt['df_watermark_image']['width'] / 100;
915
- $ratio = (($img_width * $size) / $watermark_width);
916
- $w = ($watermark_width * $ratio);
917
- $h = ($watermark_height * $ratio);
918
  }
919
  else //original
920
  {
921
- $size = 1;
922
- $w = ($watermark_width * $size);
923
- $h = ($watermark_height * $size);
924
  }
925
 
926
- $offset_w = $opt['df_watermark_image']['offset_width'];
927
- $offset_h = $opt['df_watermark_image']['offset_height'];
928
-
929
  switch($opt['df_watermark_image']['position'])
930
  {
931
  case 'top_left':
@@ -972,10 +1015,10 @@ class ImageWatermark
972
  $dest_y = ($img_height / 2) - ($h / 2);
973
  }
974
 
975
- $dest_x += $offset_w;
976
- $dest_y += $offset_h;
977
- $resized = $this->resize($watermark, $url, $w, $h);
978
- $this->imagecopymerge_alpha($image, $resized, $dest_x, $dest_y, 0, 0, $w, $h, $opt['df_watermark_image']['transparent']);
979
 
980
  return $image;
981
  }
@@ -988,10 +1031,13 @@ class ImageWatermark
988
  {
989
  //creating a cut resource
990
  $cut = imagecreateTRUEcolor($src_w, $src_h);
 
991
  //copying relevant section from background to the cut resource
992
  imagecopy($cut, $dst_im, 0, 0, $dst_x, $dst_y, $src_w, $src_h);
 
993
  //copying relevant section from watermark to the cut resource
994
  imagecopy($cut, $src_im, 0, 0, $src_x, $src_y, $src_w, $src_h);
 
995
  //insert cut resource to destination image
996
  imagecopymerge($dst_im, $cut, $dst_x, $dst_y, 0, 0, $src_w, $src_h, $pct);
997
  }
@@ -1015,6 +1061,7 @@ class ImageWatermark
1015
  }
1016
 
1017
  imagecopyresampled($newImg, $im, 0, 0, 0, 0, $nWidth, $nHeight, $imgInfo[0], $imgInfo[1]);
 
1018
  return $newImg;
1019
  }
1020
 
@@ -1054,13 +1101,13 @@ class ImageWatermark
1054
  * @param string $filepath
1055
  * @return boolean
1056
  */
1057
- private function save_image_file($image, $mime_type, $filepath)
1058
  {
1059
  switch($mime_type)
1060
  {
1061
  case 'image/jpeg':
1062
  case 'image/pjpeg':
1063
- imagejpeg($image, $filepath, apply_filters('jpeg_quality', 90));
1064
  break;
1065
 
1066
  case 'image/png':
@@ -1070,5 +1117,5 @@ class ImageWatermark
1070
  }
1071
  }
1072
 
1073
- $wpm_in = new ImageWatermark();
1074
  ?>
2
  /*
3
  Plugin Name: Image Watermark
4
  Description: Image Watermark allows you to automatically watermark images uploaded to the WordPress Media Library.
5
+ Version: 1.1.2
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
27
  wp_die(__('Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher.'));
28
  }
29
 
30
+
31
+ class Image_Watermark
32
  {
33
  private $_messages = array();
34
  private $_image_sizes = array();
55
  'offset_height' => 0,
56
  'absolute_width' => 0,
57
  'absolute_height' => 0,
58
+ 'transparent' => 50,
59
+ 'quality' => 90,
60
+ 'jpeg_format' => 'baseline'
61
  ),
62
  'df_image_protection' => array(
63
  'rightclick' => 0,
260
  {
261
  wp_enqueue_script(
262
  'apply-watermark',
263
+ plugins_url('/js/apply-watermark-admin.js', __FILE__)
264
  );
265
 
266
  wp_localize_script(
278
 
279
  wp_enqueue_script(
280
  'upload-manager',
281
+ plugins_url('/js/upload-manager-admin.js', __FILE__)
 
 
 
 
 
 
282
  );
283
 
284
  wp_enqueue_script(
285
  'watermark-admin-script',
286
+ plugins_url('js/image-watermark-admin.js', __FILE__),
287
+ array('jquery', 'jquery-ui-core', 'jquery-ui-button')
288
  );
289
 
290
  wp_localize_script(
301
  )
302
  );
303
 
 
304
  wp_enqueue_style('watermark-style', plugins_url('css/image-watermark.css', __FILE__));
305
  wp_enqueue_style('wp-like-ui-theme', plugins_url('css/wp-like-ui-theme.css', __FILE__));
306
  }
319
  return;
320
  }
321
 
322
+ wp_enqueue_script(
323
+ 'no-right-click',
324
+ plugins_url('js/no-right-click-front.js', __FILE__)
325
+ );
326
+
327
  wp_localize_script(
328
  'no-right-click',
329
  'norightclick_args',
439
  break;
440
 
441
  case 'transparent':
442
+ case 'quality':
443
  case 'width':
444
  $tmp[$image_option] = (isset($_POST[$option][$image_option]) ? ($_POST[$option][$image_option] <= 0 ? 0 : ($_POST[$option][$image_option] >= 100 ? 100 : (int)$_POST[$option][$image_option])) : $this->_options[$option][$image_option]);
445
  break;
457
  $tmp[$image_option] = (isset($_POST[$option][$image_option]) ? (int)$_POST[$option][$image_option] : $this->_options[$option][$image_option]);
458
  break;
459
 
460
+ case 'jpeg_format':
461
+ $tmp[$image_option] = (isset($_POST[$option][$image_option]) && in_array($_POST[$option][$image_option], array('baseline', 'progressive')) ? $_POST[$option][$image_option] : $this->_options[$option][$image_option]);
462
+ break;
463
+
464
  case 'position':
465
  $positions = array();
466
 
511
 
512
  $watermark_image = get_option('df_watermark_image');
513
  $image_protection = get_option('df_image_protection');
514
+ $watermark_on = get_option('df_watermark_on');
515
 
516
  //update-fix from 1.1.0 to later versions
517
  $watermark_image['manual_watermarking'] = (isset($watermark_image['manual_watermarking']) ? $watermark_image['manual_watermarking'] : $this->_options['df_watermark_image']['manual_watermarking']);
518
 
519
+ $errors = '';
520
+
521
+ if(($watermark_image['plugin_off'] === 0 || $watermark_image['manual_watermarking'] === 1))
522
  {
523
+ if($watermark_image['url'] === 0)
524
+ {
525
+ $errors .= __('Watermark will not be applied when <b>watermark image is not set</b>.', 'image-watermark');
526
+ }
527
+
528
+ if(empty($watermark_on))
529
+ {
530
+ $errors .= ($errors !== '' ? '<br />' : '').__('Watermark will not be applied when <b>no image sizes are selected</b>.', 'image-watermark');
531
+ }
532
+
533
+ echo ($errors !== '' ? sprintf('<div class="error"><p>%s</p></div>', $errors) : '');
534
  }
535
  ?>
536
  <div class="wrap">
577
  <th scope="row"><?php echo __('Enable watermark for', 'image-watermark'); ?></th>
578
  <td class="wr_width">
579
  <fieldset class="wr_width">
 
580
  <div id="thumbnail-select">
581
  <?php foreach($this->_image_sizes as $image_size) : ?>
582
+ <input name="df_watermark_on[<?php echo $image_size; ?>]" type="checkbox" id="<?php echo $image_size; ?>" value="1" <?php echo (in_array($image_size, array_keys($watermark_on)) ? ' checked="checked"' : ''); ?> />
583
  <label for="<?php echo $image_size; ?>"><?php echo $image_size; ?></label>
584
  <?php endforeach; ?>
585
  </div>
586
+ <p class="howto"><?php echo __('Check image sizes on which watermark should appear. <b>Notice:</b> checking full size is not recommened as it\'s the original image.', 'image-watermark'); ?></p>
587
  <?php $watermark_cpt_on = array_keys(get_option('df_watermark_cpt_on'));
588
  if(in_array('everywhere', $watermark_cpt_on) && count($watermark_cpt_on) === 1)
589
  { $first_checked = TRUE; $second_checked = FALSE; $watermark_cpt_on = array(); }
682
  else
683
  {
684
  $imageFullSize = wp_get_attachment_image_src($watermark_image['url'], 'full', FALSE);
685
+
686
+ _e('Original size', 'image-watermark').': '.$imageFullSize[1].' px / '.$imageFullSize[2].' px';
687
  }
688
  ?>
689
  </p>
691
  </td>
692
  </tr>
693
  <tr valign="top">
694
+ <th scope="row"><?php _e('Watermark size', 'image-watermark'); ?></th>
695
  <td class="wr_width">
696
  <fieldset class="wr_width">
697
  <div id="watermark-type">
698
+ <label for="type1"><?php _e('original', 'image-watermark'); ?></label>
699
+ <input type="radio" id="type1" value="0" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 0, TRUE); ?> />
700
+ <label for="type2"><?php _e('custom', 'image-watermark'); ?></label>
701
+ <input type="radio" id="type2" value="1" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 1, TRUE); ?> />
702
+ <label for="type3"><?php _e('scaled', 'image-watermark'); ?></label>
703
+ <input type="radio" id="type3" value="2" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 2, TRUE); ?> />
704
  </div>
705
+ <p class="howto"><?php _e('Select method of aplying watermark size.', 'image-watermark'); ?></p>
706
  </fieldset>
707
  </td>
708
  </tr>
709
  <tr valign="top" id="watermark_size_custom">
710
+ <th scope="row"><?php _e('Watermark custom size', 'image-watermark'); ?></th>
711
  <td class="wr_width">
712
  <fieldset class="wr_width">
713
+ <?php _e('x:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_width]" value="<?php echo $watermark_image['absolute_width']; ?>"> <?php _e('px', 'image-watermark'); ?>
714
  <br />
715
+ <?php _e('y:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_height]" value="<?php echo $watermark_image['absolute_height']; ?>"> <?php _e('px','image-watermark'); ?>
716
  </fieldset>
717
+ <p class="howto"><?php _e('Those dimensions will be used if "custom" method is selected above.', 'image-watermark'); ?></p>
718
  </td>
719
  </tr>
720
  <tr valign="top" id="watermark_size_scale">
721
+ <th scope="row"><?php _e('Scale of watermark in relation to image width', 'image-watermark'); ?></th>
722
  <td class="wr_width">
723
  <fieldset class="wr_width">
724
+ <input type="text" size="5" name="df_watermark_image[width]" value="<?php echo $watermark_image['width']; ?>">%
725
  </fieldset>
726
+ <p class="howto"><?php _e('This value will be used if "scaled" method if selected above. <br />Enter a number ranging from 0 to 100. 100 makes width of watermark image equal to width of the image it is applied to.', 'image-watermark'); ?></p>
727
  </td>
728
  </tr>
729
  <tr valign="top">
730
+ <th scope="row"><?php _e('Watermark transparency / opacity', 'image-watermark'); ?></th>
731
+ <td class="wr_width">
732
+ <fieldset class="wr_width">
733
+ <input type="text" size="5" maxlength="3" name="df_watermark_image[transparent]" value="<?php echo $watermark_image['transparent']; ?>">%
734
+ </fieldset>
735
+ <p class="howto"><?php _e('Enter a number ranging from 0 to 100. 0 makes watermark image completely transparent, 100 shows it as is.', 'image-watermark'); ?></p>
736
+ </td>
737
+ </tr>
738
+ <tr valign="top">
739
+ <th scope="row"><?php _e('Image quality', 'image-watermark'); ?></th>
740
+ <td class="wr_width">
741
+ <fieldset class="wr_width">
742
+ <input type="text" size="5" maxlength="3" name="df_watermark_image[quality]" value="<?php echo $watermark_image['quality']; ?>">%
743
+ </fieldset>
744
+ <p class="howto"><?php _e('Set watermark image quality.', 'image-watermark'); ?></p>
745
+ </td>
746
+ </tr>
747
+ <tr valign="top">
748
+ <th scope="row"><?php _e('Image format', 'image-watermark'); ?></th>
749
  <td class="wr_width">
750
  <fieldset class="wr_width">
751
+ <div id="jpeg-format">
752
+ <label for="baseline"><?php _e('baseline', 'image-watermark'); ?></label>
753
+ <input type="radio" id="baseline" value="baseline" name="df_watermark_image[jpeg_format]" <?php checked($watermark_image['jpeg_format'], 'baseline', TRUE); ?> />
754
+ <label for="progressive"><?php _e('progressive', 'image-watermark'); ?></label>
755
+ <input type="radio" id="progressive" value="progressive" name="df_watermark_image[jpeg_format]" <?php checked($watermark_image['jpeg_format'], 'progressive', TRUE); ?> />
756
+ </div>
757
  </fieldset>
758
+ <p class="howto"><?php _e('Select baseline or progressive image format.', 'image-watermark'); ?></p>
759
  </td>
760
  </tr>
761
  </table>
762
  <input type="hidden" name="action" value="update" />
763
  <hr />
764
+ <h3><?php _e('Image protection', 'image-watermark'); ?></h3>
765
  <table id="watermark-protection-table" class="form-table">
766
  <tr>
767
+ <th><?php _e('Disable right mouse click on images', 'image-watermark'); ?></th>
768
  <td><input type="checkbox" <?php checked($image_protection['rightclick'], 1, TRUE); ?> value="1" name="df_image_protection[rightclick]"></td>
769
  </tr>
770
  <tr>
771
+ <th><?php _e('Prevent drag and drop', 'image-watermark'); ?></th>
772
  <td><input type="checkbox" <?php checked($image_protection['draganddrop'], 1, TRUE); ?> value="1" name="df_image_protection[draganddrop]"></td>
773
  </tr>
774
  <tr>
775
+ <th><?php _e('Enable image protection for logged-in users also', 'image-watermark'); ?></th>
776
  <td><input type="checkbox" <?php checked($image_protection['forlogged'], 1, TRUE); ?> value="1" name="df_image_protection[forlogged]"></td>
777
  </tr>
778
  </table>
779
  <hr />
780
+ <input type="submit" id="watermark-submit" class="button button-primary" name="submit" value="<?php _e('Save Changes', 'image-watermark'); ?>" />
781
  </form>
782
  </div>
783
  </div>
784
 
785
  <div id="df-credits" class="postbox-container">
786
+ <h3 class="metabox-title"><?php _e('Image Watermark', 'image-watermark'); ?></h3>
787
  <div class="inner">
788
+ <h3><?php _e('Need support?', 'image-watermark'); ?></h3>
789
+ <p><?php _e('If you are having problems with this plugin, please talk about them in the', 'image-watermark'); ?> <a href="http://dfactory.eu/support/" target="_blank" title="<?php _e('Support forum', 'image-watermark'); ?>"><?php _e('Support forum', 'image-watermark'); ?></a></p>
790
  <hr />
791
+ <h3><?php _e('Do you like this plugin?', 'image-watermark'); ?></h3>
792
+ <p><a href="http://wordpress.org/support/view/plugin-reviews/image-watermark?filter=5" target="_blank" title="<?php _e('Rate it 5', 'image-watermark'); ?>"><?php _e('Rate it 5', 'image-watermark'); ?></a> <?php _e('on WordPress.org', 'image-watermark'); ?><br />
793
+ <?php _e('Blog about it & link to the','image-watermark'); ?> <a href="http://dfactory.eu/plugins/image-watermark/" target="_blank" title="<?php _e('plugin page', 'image-watermark'); ?>"><?php _e('plugin page', 'image-watermark'); ?></a><br />
794
+ <?php _e('Check out our other', 'image-watermark'); ?> <a href="http://dfactory.eu/plugins/" target="_blank" title="<?php _e('WordPress plugins', 'image-watermark'); ?>"><?php _e('WordPress plugins', 'image-watermark'); ?></a>
795
  </p>
796
 
797
  <hr />
798
+ <p class="df-link"><?php _e('Created by', 'restrict-widgets'); ?><a href="http://www.dfactory.eu" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="<?php echo plugins_url( 'images/logo-dfactory.png' , __FILE__ ); ?>" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
799
 
800
  </div>
801
  </div>
860
  }
861
  }
862
 
863
+ do_action('iw_before_apply_watermark');
864
+
865
  //apply watermark
866
  $this->do_watermark($filepath);
867
+
868
+ do_action('iw_after_apply_watermark');
869
  }
870
  }
871
  }
890
  $options[$option] = get_option($option);
891
  }
892
 
893
+ $options = apply_filters('iw_watermark_options', $options);
894
+
895
  //get image mime type
896
  $mime_type = wp_check_filetype($filepath);
 
897
 
898
  //get image resource
899
+ if(($image = $this->get_image_resource($filepath, $mime_type['type'])) !== FALSE)
900
  {
901
  //add watermark image to image
902
  if($this->add_watermark_image($image, $options) !== FALSE)
903
  {
904
+ if($options['df_watermark_image']['jpeg_format'] === 'progressive')
905
+ {
906
+ imageinterlace($image, true);
907
+ }
908
+
909
  //save watermarked image
910
+ $this->save_image_file($image, $mime_type['type'], $filepath, $options['df_watermark_image']['quality']);
911
  }
912
  }
913
  }
922
  */
923
  private function add_watermark_image($image, array $opt)
924
  {
925
+ //due to allow_url_fopen restrictions on some servers in getimagesize() we need to use server path (not URL)
926
  $size_type = $opt['df_watermark_image']['watermark_size_type'];
927
+ $upload_dir = wp_upload_dir();
928
+ $url = $upload_dir['basedir'].strrchr(wp_get_attachment_url($opt['df_watermark_image']['url']), '/');
929
  $watermark_file = getimagesize($url);
930
 
931
  switch($watermark_file['mime'])
959
  }
960
  elseif($size_type === 2) //scale
961
  {
962
+ $ratio = $img_width * $opt['df_watermark_image']['width'] / 100 / $watermark_width;
963
+ $w = (int)($watermark_width * $ratio);
964
+ $h = (int)($watermark_height * $ratio);
 
965
  }
966
  else //original
967
  {
968
+ $w = $watermark_width;
969
+ $h = $watermark_height;
 
970
  }
971
 
 
 
 
972
  switch($opt['df_watermark_image']['position'])
973
  {
974
  case 'top_left':
1015
  $dest_y = ($img_height / 2) - ($h / 2);
1016
  }
1017
 
1018
+ $dest_x += $opt['df_watermark_image']['offset_width'];
1019
+ $dest_y += $opt['df_watermark_image']['offset_height'];
1020
+
1021
+ $this->imagecopymerge_alpha($image, $this->resize($watermark, $url, $w, $h), $dest_x, $dest_y, 0, 0, $w, $h, $opt['df_watermark_image']['transparent']);
1022
 
1023
  return $image;
1024
  }
1031
  {
1032
  //creating a cut resource
1033
  $cut = imagecreateTRUEcolor($src_w, $src_h);
1034
+
1035
  //copying relevant section from background to the cut resource
1036
  imagecopy($cut, $dst_im, 0, 0, $dst_x, $dst_y, $src_w, $src_h);
1037
+
1038
  //copying relevant section from watermark to the cut resource
1039
  imagecopy($cut, $src_im, 0, 0, $src_x, $src_y, $src_w, $src_h);
1040
+
1041
  //insert cut resource to destination image
1042
  imagecopymerge($dst_im, $cut, $dst_x, $dst_y, 0, 0, $src_w, $src_h, $pct);
1043
  }
1061
  }
1062
 
1063
  imagecopyresampled($newImg, $im, 0, 0, 0, 0, $nWidth, $nHeight, $imgInfo[0], $imgInfo[1]);
1064
+
1065
  return $newImg;
1066
  }
1067
 
1101
  * @param string $filepath
1102
  * @return boolean
1103
  */
1104
+ private function save_image_file($image, $mime_type, $filepath, $quality)
1105
  {
1106
  switch($mime_type)
1107
  {
1108
  case 'image/jpeg':
1109
  case 'image/pjpeg':
1110
+ imagejpeg($image, $filepath, $quality);
1111
  break;
1112
 
1113
  case 'image/png':
1117
  }
1118
  }
1119
 
1120
+ $image_watermark = new Image_Watermark();
1121
  ?>
js/admin.js DELETED
@@ -1,29 +0,0 @@
1
- (function ($)
2
- {
3
- $(document).ready(function ()
4
- {
5
- //hover states on the static widgets
6
- $('#dialog_link, ul#icons li').hover(
7
- function() { $(this).addClass('ui-state-hover'); },
8
- function() { $(this).removeClass('ui-state-hover'); }
9
- );
10
-
11
- // Button
12
- $('#divButton, #linkButton, #submitButton, #inputButton').button();
13
-
14
- // Button Set
15
- $('#run-watermark, #thumbnail-select, #watermark-type, #cpt-select, #cpt-specific, #run-manual-watermark').buttonset();
16
-
17
- $('#df_option_everywhere, #df_option_cpt').change(function()
18
- {
19
- if($('#cpt-specific input[name=df_watermark_cpt_on]:checked').val() == 'everywhere')
20
- {
21
- $('#cpt-select').fadeOut('slow');
22
- }
23
- else if($('#cpt-specific input[name=df_watermark_cpt_on]:checked').val() == 'specific')
24
- {
25
- $('#cpt-select').fadeIn('slow');
26
- }
27
- });
28
- });
29
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/{apply-watermark.js → apply-watermark-admin.js} RENAMED
File without changes
js/image-watermark-admin.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ //hover states
4
+ $('#dialog_link, ul#icons li').hover(
5
+ function() { $(this).addClass('ui-state-hover'); },
6
+ function() { $(this).removeClass('ui-state-hover'); }
7
+ );
8
+
9
+ //buttons
10
+ $('#run-watermark, #jpeg-format, #thumbnail-select, #watermark-type, #cpt-select, #cpt-specific, #run-manual-watermark').buttonset();
11
+
12
+ //enable watermark for
13
+ $('#df_option_everywhere, #df_option_cpt').change(function()
14
+ {
15
+ if($('#cpt-specific input[name=df_watermark_cpt_on]:checked').val() === 'everywhere')
16
+ {
17
+ $('#cpt-select').fadeOut(300);
18
+ }
19
+ else if($('#cpt-specific input[name=df_watermark_cpt_on]:checked').val() === 'specific')
20
+ {
21
+ $('#cpt-select').fadeIn(300);
22
+ }
23
+ });
24
+ });
js/{no-right-click.js → no-right-click-front.js} RENAMED
File without changes
js/{upload-manager.js → upload-manager-admin.js} RENAMED
File without changes
js/wp-like.js DELETED
@@ -1,7 +0,0 @@
1
- (function ($) {
2
- $(document).ready(function ()
3
- {
4
- // Button
5
- $("#divButton, #linkButton, #submitButton, #inputButton").button();
6
- });
7
- })(jQuery);
 
 
 
 
 
 
 
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: 2013-05-10 11:52+0100\n"
6
- "PO-Revision-Date: 2013-05-10 11:53+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
8
  "Language-Team: Digital Factory <info@digitalfactory.pl>\n"
9
  "Language: pl_PL\n"
@@ -25,49 +25,49 @@ msgstr ""
25
  "Przykro nam, ale ta wtyczka wymaga PHP w wersji co najmniej 5.0 WordPressa w "
26
  "wersji 3.5 lub wyższej.."
27
 
28
- #: ../image-watermark.php:146
29
  msgid ""
30
  "Watermark couldn't be applied to selected images or no images were selected."
31
  msgstr ""
32
  "Znak wodny nie został został dodany do wybranych obrazków lub żaden obrazek "
33
  "nie został wybrany."
34
 
35
- #: ../image-watermark.php:150
36
  #, php-format
37
  msgid "Watermark was succesfully applied to 1 image."
38
  msgid_plural "Watermark was succesfully applied to %s images."
39
  msgstr[0] "Znak wodny został dodany do 1 obrazka."
40
  msgstr[1] "Znak wodny został dodany do %s obrazków."
41
 
42
- #: ../image-watermark.php:214
43
  msgid "Support"
44
  msgstr "Forum pomocy"
45
 
46
- #: ../image-watermark.php:236
47
  msgid "Settings"
48
  msgstr "Ustawienia"
49
 
50
- #: ../image-watermark.php:267
51
  msgid "Apply watermark"
52
  msgstr "Dodaj znak wodny"
53
 
54
- #: ../image-watermark.php:297
55
  msgid "Select watermark"
56
  msgstr "Wybierz znak wodny"
57
 
58
- #: ../image-watermark.php:298 ../image-watermark.php:672
59
  msgid "Original size"
60
  msgstr "Rozmiar oryginalny"
61
 
62
- #: ../image-watermark.php:299 ../image-watermark.php:666
63
  msgid "Watermak has not been selected yet."
64
  msgstr "Znak wodny nie został jeszcze wybrany."
65
 
66
- #: ../image-watermark.php:300
67
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
68
  msgstr "Ten rodzaj obrazka nie może być znakiem wodnym. Użyj JPEG, PNG or GIF."
69
 
70
- #: ../image-watermark.php:302
71
  msgid "Add watermark"
72
  msgstr "Dodaj znak wodny"
73
 
@@ -84,66 +84,77 @@ msgid "Image Watermark will not work properly without GD PHP extension."
84
  msgstr ""
85
  "Znak wodny nie może funkcjonować bez zainstalowanego rozszerzenia GD PHP."
86
 
87
- #: ../image-watermark.php:503
88
  msgid "Settings saved."
89
  msgstr "Ustawienia zostały zapisane."
90
 
91
- #: ../image-watermark.php:517
92
- msgid "Watermarks will not be applied when <b>watermark image is not set</b>."
93
  msgstr ""
94
  "Znak wodny nie zostanie dodany ponieważ <b>nie wybrano obrazka dla znaku "
95
  "wodnego</b>."
96
 
97
- #: ../image-watermark.php:523
 
 
 
 
 
 
98
  msgid "Image Watermark Settings"
99
  msgstr "Ustawienia znaku wodnego"
100
 
101
- #: ../image-watermark.php:527
102
  msgid "General settings"
103
  msgstr "Ustawienia ogólne"
104
 
105
- #: ../image-watermark.php:530
106
  msgid "Automatic watermarking"
107
  msgstr "Automatyczne dodawanie znaku wodnego"
108
 
109
- #: ../image-watermark.php:534 ../image-watermark.php:550
110
  msgid "on"
111
  msgstr "włączony"
112
 
113
- #: ../image-watermark.php:536 ../image-watermark.php:552
114
  msgid "off"
115
  msgstr "wyłączony"
116
 
117
- #: ../image-watermark.php:539
118
  msgid "Enable or disable watermark for uploaded images."
119
  msgstr "Włącz lub wyłącz dodawanie znaku wodnego do wgrywanych obrazków."
120
 
121
- #: ../image-watermark.php:546
122
  msgid "Manual watermarking"
123
  msgstr "Ręczne dodawanie znaku wodnego"
124
 
125
- #: ../image-watermark.php:555
126
  msgid "Enable or disable Apply Watermark option for images in Media Library."
127
  msgstr ""
128
  "Włącz lub wyłącz dodawanie znaku wodnego do obrazków w Bibliotece mediów."
129
 
130
- #: ../image-watermark.php:562
131
  msgid "Enable watermark for"
132
  msgstr "Dodawaj znak wodny do"
133
 
134
- #: ../image-watermark.php:572
135
- msgid "Check image sizes on which watermark should appear."
136
- msgstr "Zaznacz wielkości obrazków dla których ma być dodawany znak wodny."
 
 
 
 
 
137
 
138
- #: ../image-watermark.php:578
139
  msgid "everywhere"
140
  msgstr "wszędzie"
141
 
142
- #: ../image-watermark.php:579
143
  msgid "on selected post types only"
144
  msgstr "na wybranych typach wpisów"
145
 
146
- #: ../image-watermark.php:587
147
  msgid ""
148
  "Check custom post types on which watermark should be applied to uploaded "
149
  "images."
@@ -151,97 +162,97 @@ msgstr ""
151
  "Zaznacz własne typy wpisów w których znak wodny będzie dodawany do "
152
  "wgrywanych obrazków."
153
 
154
- #: ../image-watermark.php:593
155
  msgid "Watermark position"
156
  msgstr "Pozycja znaku wodnego"
157
 
158
- #: ../image-watermark.php:596
159
  msgid "Watermark alignment"
160
  msgstr "Wyrównanie znaku wodnego"
161
 
162
- #: ../image-watermark.php:611
163
  msgid "Choose the position of watermark image."
164
  msgstr "Wybierz pozycję znaku wodnego na obrazkach"
165
 
166
- #: ../image-watermark.php:616
167
  msgid "Watermark offset"
168
  msgstr "Korekcja pozycji"
169
 
170
- #: ../image-watermark.php:619 ../image-watermark.php:699
171
  msgid "x:"
172
  msgstr "x:"
173
 
174
- #: ../image-watermark.php:619 ../image-watermark.php:621
175
- #: ../image-watermark.php:699 ../image-watermark.php:701
176
  msgid "px"
177
  msgstr "pikseli"
178
 
179
- #: ../image-watermark.php:621 ../image-watermark.php:701
180
  msgid "y:"
181
  msgstr "y:"
182
 
183
- #: ../image-watermark.php:637 ../image-watermark.php:641
184
  msgid "Watermark image"
185
  msgstr "Obrazek znaku wodnego"
186
 
187
- #: ../image-watermark.php:638
188
  msgid ""
189
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
190
  msgstr ""
191
  "Skonfiguruj obrazek znaku wodnego. Dozwolone formaty plików to: JPEG, PNG, "
192
  "GIF."
193
 
194
- #: ../image-watermark.php:644
195
  msgid "Select image"
196
  msgstr "Wybierz obrazek"
197
 
198
- #: ../image-watermark.php:645
199
  msgid "Turn off image"
200
  msgstr "Wyłącz obrazek"
201
 
202
- #: ../image-watermark.php:646
203
  msgid "You have to save changes after the selection or removal of the image."
204
  msgstr "Po zapisaniu zmian lub wybraniu obrazka powienieneś zapisać zmiany."
205
 
206
- #: ../image-watermark.php:650
207
  msgid "Watermark preview"
208
  msgstr "Podgląd obrazka"
209
 
210
- #: ../image-watermark.php:680
211
  msgid "Watermark size"
212
  msgstr "Wielkość znaku wodnego"
213
 
214
- #: ../image-watermark.php:684
215
  msgid "original"
216
  msgstr "oryginalna"
217
 
218
- #: ../image-watermark.php:686
219
  msgid "custom"
220
  msgstr "własna"
221
 
222
- #: ../image-watermark.php:688
223
  msgid "scaled"
224
  msgstr "skalowana"
225
 
226
- #: ../image-watermark.php:691
227
  msgid "Select method of aplying watermark size."
228
  msgstr "Wybierz sposób określania wielkości znaku wodnego."
229
 
230
- #: ../image-watermark.php:696
231
  msgid "Watermark custom size"
232
  msgstr "Własna wielkość"
233
 
234
- #: ../image-watermark.php:703
235
  msgid "Those dimensions will be used if \"custom\" method is selected above."
236
  msgstr ""
237
  "Te wymiary zostaną zastosowane, jeśli wybrałeś \"własną\" wielkość znaku "
238
  "wodnego. "
239
 
240
- #: ../image-watermark.php:707
241
  msgid "Scale of watermark in relation to image width"
242
  msgstr "Wielkość znaku wodnego w stosunku do szerokości obrazków"
243
 
244
- #: ../image-watermark.php:712
245
  msgid ""
246
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
247
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
@@ -252,11 +263,11 @@ msgstr ""
252
  "że wielkość znaku wodnego będzie równa wielkości obrazka, do którego jest "
253
  "dodawany."
254
 
255
- #: ../image-watermark.php:716
256
  msgid "Watermark transparency / opacity"
257
  msgstr "Przezroczystość znaku wodnego"
258
 
259
- #: ../image-watermark.php:721
260
  msgid ""
261
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
262
  "transparent, 100 shows it as is."
@@ -264,75 +275,102 @@ msgstr ""
264
  "Wpisz liczbę z zakresu od 0 do 100. Wpisanie 0 spowoduje, że znak wodny "
265
  "będzie całkowicie przezroczysty, 100 że widoczny taki jak jest."
266
 
267
- #: ../image-watermark.php:727
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  msgid "Image protection"
269
  msgstr "Ochrona obrazków"
270
 
271
- #: ../image-watermark.php:730
272
  msgid "Disable right mouse click on images"
273
  msgstr "Wyłącz możliwość kliknięcia prawym przyciskiem myszy na obrazku"
274
 
275
- #: ../image-watermark.php:734
276
  msgid "Prevent drag and drop"
277
  msgstr "Wyłącz możliwość przeciągania i upuszczania obrazków"
278
 
279
- #: ../image-watermark.php:738
280
  msgid "Enable image protection for logged-in users also"
281
  msgstr "Włącz ochronę zdjęć także dla zalogowanych użytkowników"
282
 
283
- #: ../image-watermark.php:743
284
  msgid "Save Changes"
285
  msgstr "Zapisz zmiany"
286
 
287
- #: ../image-watermark.php:749
288
  msgid "Image Watermark"
289
  msgstr "Znak wodny"
290
 
291
- #: ../image-watermark.php:751
292
  msgid "Need support?"
293
  msgstr "Potrzebujesz pomocy?"
294
 
295
- #: ../image-watermark.php:752
296
  msgid ""
297
  "If you are having problems with this plugin, please talk about them in the"
298
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o tym na"
299
 
300
- #: ../image-watermark.php:752
301
  msgid "Support forum"
302
  msgstr "Forum pomocy"
303
 
304
- #: ../image-watermark.php:754
305
  msgid "Do you like this plugin?"
306
  msgstr "Lubisz tę wtyczkę?"
307
 
308
- #: ../image-watermark.php:755
309
  msgid "Rate it 5"
310
  msgstr "Oceń ją na 5"
311
 
312
- #: ../image-watermark.php:755
313
  msgid "on WordPress.org"
314
  msgstr "na WordPress.org"
315
 
316
- #: ../image-watermark.php:756
317
  msgid "Blog about it & link to the"
318
  msgstr "Napisz o niej i dodaj link do"
319
 
320
- #: ../image-watermark.php:756
321
  msgid "plugin page"
322
  msgstr "strony wtyczki"
323
 
324
- #: ../image-watermark.php:757
325
  msgid "Check out our other"
326
  msgstr "Sprawdź inne"
327
 
328
- #: ../image-watermark.php:757
329
  msgid "WordPress plugins"
330
  msgstr "wtyczki do WordPressa"
331
 
332
- #: ../image-watermark.php:761
333
  msgid "Created by"
334
  msgstr "Stworzone przez"
335
 
 
 
 
336
  #~ msgid "Width"
337
  #~ msgstr "Szerokość"
338
 
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-06-10 16:48+0100\n"
6
+ "PO-Revision-Date: 2013-06-10 16:50+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
8
  "Language-Team: Digital Factory <info@digitalfactory.pl>\n"
9
  "Language: pl_PL\n"
25
  "Przykro nam, ale ta wtyczka wymaga PHP w wersji co najmniej 5.0 WordPressa w "
26
  "wersji 3.5 lub wyższej.."
27
 
28
+ #: ../image-watermark.php:149
29
  msgid ""
30
  "Watermark couldn't be applied to selected images or no images were selected."
31
  msgstr ""
32
  "Znak wodny nie został został dodany do wybranych obrazków lub żaden obrazek "
33
  "nie został wybrany."
34
 
35
+ #: ../image-watermark.php:153
36
  #, php-format
37
  msgid "Watermark was succesfully applied to 1 image."
38
  msgid_plural "Watermark was succesfully applied to %s images."
39
  msgstr[0] "Znak wodny został dodany do 1 obrazka."
40
  msgstr[1] "Znak wodny został dodany do %s obrazków."
41
 
42
+ #: ../image-watermark.php:217
43
  msgid "Support"
44
  msgstr "Forum pomocy"
45
 
46
+ #: ../image-watermark.php:239
47
  msgid "Settings"
48
  msgstr "Ustawienia"
49
 
50
+ #: ../image-watermark.php:270
51
  msgid "Apply watermark"
52
  msgstr "Dodaj znak wodny"
53
 
54
+ #: ../image-watermark.php:294
55
  msgid "Select watermark"
56
  msgstr "Wybierz znak wodny"
57
 
58
+ #: ../image-watermark.php:295 ../image-watermark.php:686
59
  msgid "Original size"
60
  msgstr "Rozmiar oryginalny"
61
 
62
+ #: ../image-watermark.php:296 ../image-watermark.php:680
63
  msgid "Watermak has not been selected yet."
64
  msgstr "Znak wodny nie został jeszcze wybrany."
65
 
66
+ #: ../image-watermark.php:297
67
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
68
  msgstr "Ten rodzaj obrazka nie może być znakiem wodnym. Użyj JPEG, PNG or GIF."
69
 
70
+ #: ../image-watermark.php:299
71
  msgid "Add watermark"
72
  msgstr "Dodaj znak wodny"
73
 
84
  msgstr ""
85
  "Znak wodny nie może funkcjonować bez zainstalowanego rozszerzenia GD PHP."
86
 
87
+ #: ../image-watermark.php:508
88
  msgid "Settings saved."
89
  msgstr "Ustawienia zostały zapisane."
90
 
91
+ #: ../image-watermark.php:525
92
+ msgid "Watermark will not be applied when <b>watermark image is not set</b>."
93
  msgstr ""
94
  "Znak wodny nie zostanie dodany ponieważ <b>nie wybrano obrazka dla znaku "
95
  "wodnego</b>."
96
 
97
+ #: ../image-watermark.php:530
98
+ msgid "Watermark will not be applied when <b>no image sizes are selected</b>."
99
+ msgstr ""
100
+ "Znak wodny nie zostanie dodany ponieważ <b>nie wybrano wielkości obrazków</"
101
+ "b>."
102
+
103
+ #: ../image-watermark.php:538
104
  msgid "Image Watermark Settings"
105
  msgstr "Ustawienia znaku wodnego"
106
 
107
+ #: ../image-watermark.php:542
108
  msgid "General settings"
109
  msgstr "Ustawienia ogólne"
110
 
111
+ #: ../image-watermark.php:545
112
  msgid "Automatic watermarking"
113
  msgstr "Automatyczne dodawanie znaku wodnego"
114
 
115
+ #: ../image-watermark.php:549 ../image-watermark.php:565
116
  msgid "on"
117
  msgstr "włączony"
118
 
119
+ #: ../image-watermark.php:551 ../image-watermark.php:567
120
  msgid "off"
121
  msgstr "wyłączony"
122
 
123
+ #: ../image-watermark.php:554
124
  msgid "Enable or disable watermark for uploaded images."
125
  msgstr "Włącz lub wyłącz dodawanie znaku wodnego do wgrywanych obrazków."
126
 
127
+ #: ../image-watermark.php:561
128
  msgid "Manual watermarking"
129
  msgstr "Ręczne dodawanie znaku wodnego"
130
 
131
+ #: ../image-watermark.php:570
132
  msgid "Enable or disable Apply Watermark option for images in Media Library."
133
  msgstr ""
134
  "Włącz lub wyłącz dodawanie znaku wodnego do obrazków w Bibliotece mediów."
135
 
136
+ #: ../image-watermark.php:577
137
  msgid "Enable watermark for"
138
  msgstr "Dodawaj znak wodny do"
139
 
140
+ #: ../image-watermark.php:586
141
+ msgid ""
142
+ "Check image sizes on which watermark should appear. <b>Notice:</b> checking "
143
+ "full size is not recommened as it's the original image."
144
+ msgstr ""
145
+ "Zaznacz wielkości obazków dla których będzie dodany znak wodny. <b>Uwaga:</"
146
+ "b> zaznaczenie pełnej wielkości nie jest rekomendowane, ponieważ jest to "
147
+ "oryginał obrazka."
148
 
149
+ #: ../image-watermark.php:592
150
  msgid "everywhere"
151
  msgstr "wszędzie"
152
 
153
+ #: ../image-watermark.php:593
154
  msgid "on selected post types only"
155
  msgstr "na wybranych typach wpisów"
156
 
157
+ #: ../image-watermark.php:601
158
  msgid ""
159
  "Check custom post types on which watermark should be applied to uploaded "
160
  "images."
162
  "Zaznacz własne typy wpisów w których znak wodny będzie dodawany do "
163
  "wgrywanych obrazków."
164
 
165
+ #: ../image-watermark.php:607
166
  msgid "Watermark position"
167
  msgstr "Pozycja znaku wodnego"
168
 
169
+ #: ../image-watermark.php:610
170
  msgid "Watermark alignment"
171
  msgstr "Wyrównanie znaku wodnego"
172
 
173
+ #: ../image-watermark.php:625
174
  msgid "Choose the position of watermark image."
175
  msgstr "Wybierz pozycję znaku wodnego na obrazkach"
176
 
177
+ #: ../image-watermark.php:630
178
  msgid "Watermark offset"
179
  msgstr "Korekcja pozycji"
180
 
181
+ #: ../image-watermark.php:633 ../image-watermark.php:713
182
  msgid "x:"
183
  msgstr "x:"
184
 
185
+ #: ../image-watermark.php:633 ../image-watermark.php:635
186
+ #: ../image-watermark.php:713 ../image-watermark.php:715
187
  msgid "px"
188
  msgstr "pikseli"
189
 
190
+ #: ../image-watermark.php:635 ../image-watermark.php:715
191
  msgid "y:"
192
  msgstr "y:"
193
 
194
+ #: ../image-watermark.php:651 ../image-watermark.php:655
195
  msgid "Watermark image"
196
  msgstr "Obrazek znaku wodnego"
197
 
198
+ #: ../image-watermark.php:652
199
  msgid ""
200
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
201
  msgstr ""
202
  "Skonfiguruj obrazek znaku wodnego. Dozwolone formaty plików to: JPEG, PNG, "
203
  "GIF."
204
 
205
+ #: ../image-watermark.php:658
206
  msgid "Select image"
207
  msgstr "Wybierz obrazek"
208
 
209
+ #: ../image-watermark.php:659
210
  msgid "Turn off image"
211
  msgstr "Wyłącz obrazek"
212
 
213
+ #: ../image-watermark.php:660
214
  msgid "You have to save changes after the selection or removal of the image."
215
  msgstr "Po zapisaniu zmian lub wybraniu obrazka powienieneś zapisać zmiany."
216
 
217
+ #: ../image-watermark.php:664
218
  msgid "Watermark preview"
219
  msgstr "Podgląd obrazka"
220
 
221
+ #: ../image-watermark.php:694
222
  msgid "Watermark size"
223
  msgstr "Wielkość znaku wodnego"
224
 
225
+ #: ../image-watermark.php:698
226
  msgid "original"
227
  msgstr "oryginalna"
228
 
229
+ #: ../image-watermark.php:700
230
  msgid "custom"
231
  msgstr "własna"
232
 
233
+ #: ../image-watermark.php:702
234
  msgid "scaled"
235
  msgstr "skalowana"
236
 
237
+ #: ../image-watermark.php:705
238
  msgid "Select method of aplying watermark size."
239
  msgstr "Wybierz sposób określania wielkości znaku wodnego."
240
 
241
+ #: ../image-watermark.php:710
242
  msgid "Watermark custom size"
243
  msgstr "Własna wielkość"
244
 
245
+ #: ../image-watermark.php:717
246
  msgid "Those dimensions will be used if \"custom\" method is selected above."
247
  msgstr ""
248
  "Te wymiary zostaną zastosowane, jeśli wybrałeś \"własną\" wielkość znaku "
249
  "wodnego. "
250
 
251
+ #: ../image-watermark.php:721
252
  msgid "Scale of watermark in relation to image width"
253
  msgstr "Wielkość znaku wodnego w stosunku do szerokości obrazków"
254
 
255
+ #: ../image-watermark.php:726
256
  msgid ""
257
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
258
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
263
  "że wielkość znaku wodnego będzie równa wielkości obrazka, do którego jest "
264
  "dodawany."
265
 
266
+ #: ../image-watermark.php:730
267
  msgid "Watermark transparency / opacity"
268
  msgstr "Przezroczystość znaku wodnego"
269
 
270
+ #: ../image-watermark.php:735
271
  msgid ""
272
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
273
  "transparent, 100 shows it as is."
275
  "Wpisz liczbę z zakresu od 0 do 100. Wpisanie 0 spowoduje, że znak wodny "
276
  "będzie całkowicie przezroczysty, 100 że widoczny taki jak jest."
277
 
278
+ #: ../image-watermark.php:739
279
+ msgid "Image quality"
280
+ msgstr "Jakość obrazka"
281
+
282
+ #: ../image-watermark.php:744
283
+ msgid "Set watermark image quality."
284
+ msgstr "Wybierz jakość znaku wodnego"
285
+
286
+ #: ../image-watermark.php:748
287
+ msgid "Image format"
288
+ msgstr "Format obrazka"
289
+
290
+ #: ../image-watermark.php:752
291
+ msgid "baseline"
292
+ msgstr "baseline"
293
+
294
+ #: ../image-watermark.php:754
295
+ msgid "progressive"
296
+ msgstr "progressive"
297
+
298
+ #: ../image-watermark.php:758
299
+ msgid "Select baseline or progressive image format."
300
+ msgstr "Wybierz format obrazu."
301
+
302
+ #: ../image-watermark.php:764
303
  msgid "Image protection"
304
  msgstr "Ochrona obrazków"
305
 
306
+ #: ../image-watermark.php:767
307
  msgid "Disable right mouse click on images"
308
  msgstr "Wyłącz możliwość kliknięcia prawym przyciskiem myszy na obrazku"
309
 
310
+ #: ../image-watermark.php:771
311
  msgid "Prevent drag and drop"
312
  msgstr "Wyłącz możliwość przeciągania i upuszczania obrazków"
313
 
314
+ #: ../image-watermark.php:775
315
  msgid "Enable image protection for logged-in users also"
316
  msgstr "Włącz ochronę zdjęć także dla zalogowanych użytkowników"
317
 
318
+ #: ../image-watermark.php:780
319
  msgid "Save Changes"
320
  msgstr "Zapisz zmiany"
321
 
322
+ #: ../image-watermark.php:786
323
  msgid "Image Watermark"
324
  msgstr "Znak wodny"
325
 
326
+ #: ../image-watermark.php:788
327
  msgid "Need support?"
328
  msgstr "Potrzebujesz pomocy?"
329
 
330
+ #: ../image-watermark.php:789
331
  msgid ""
332
  "If you are having problems with this plugin, please talk about them in the"
333
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o tym na"
334
 
335
+ #: ../image-watermark.php:789
336
  msgid "Support forum"
337
  msgstr "Forum pomocy"
338
 
339
+ #: ../image-watermark.php:791
340
  msgid "Do you like this plugin?"
341
  msgstr "Lubisz tę wtyczkę?"
342
 
343
+ #: ../image-watermark.php:792
344
  msgid "Rate it 5"
345
  msgstr "Oceń ją na 5"
346
 
347
+ #: ../image-watermark.php:792
348
  msgid "on WordPress.org"
349
  msgstr "na WordPress.org"
350
 
351
+ #: ../image-watermark.php:793
352
  msgid "Blog about it & link to the"
353
  msgstr "Napisz o niej i dodaj link do"
354
 
355
+ #: ../image-watermark.php:793
356
  msgid "plugin page"
357
  msgstr "strony wtyczki"
358
 
359
+ #: ../image-watermark.php:794
360
  msgid "Check out our other"
361
  msgstr "Sprawdź inne"
362
 
363
+ #: ../image-watermark.php:794
364
  msgid "WordPress plugins"
365
  msgstr "wtyczki do WordPressa"
366
 
367
+ #: ../image-watermark.php:798
368
  msgid "Created by"
369
  msgstr "Stworzone przez"
370
 
371
+ #~ msgid "Check image sizes on which watermark should appear."
372
+ #~ msgstr "Zaznacz wielkości obrazków dla których ma być dodawany znak wodny."
373
+
374
  #~ msgid "Width"
375
  #~ msgstr "Szerokość"
376
 
languages/image-watermark.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
- "POT-Creation-Date: 2013-05-10 11:52+0100\n"
5
- "PO-Revision-Date: 2013-05-10 11:52+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
  "Language-Team: dFactory <info@dfactory.pl>\n"
8
  "Language: English\n"
@@ -22,47 +22,47 @@ msgid ""
22
  "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher."
23
  msgstr ""
24
 
25
- #: ../image-watermark.php:146
26
  msgid ""
27
  "Watermark couldn't be applied to selected images or no images were selected."
28
  msgstr ""
29
 
30
- #: ../image-watermark.php:150
31
  #, php-format
32
  msgid "Watermark was succesfully applied to 1 image."
33
  msgid_plural "Watermark was succesfully applied to %s images."
34
  msgstr[0] ""
35
  msgstr[1] ""
36
 
37
- #: ../image-watermark.php:214
38
  msgid "Support"
39
  msgstr ""
40
 
41
- #: ../image-watermark.php:236
42
  msgid "Settings"
43
  msgstr ""
44
 
45
- #: ../image-watermark.php:267
46
  msgid "Apply watermark"
47
  msgstr ""
48
 
49
- #: ../image-watermark.php:297
50
  msgid "Select watermark"
51
  msgstr ""
52
 
53
- #: ../image-watermark.php:298 ../image-watermark.php:672
54
  msgid "Original size"
55
  msgstr ""
56
 
57
- #: ../image-watermark.php:299 ../image-watermark.php:666
58
  msgid "Watermak has not been selected yet."
59
  msgstr ""
60
 
61
- #: ../image-watermark.php:300
62
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
63
  msgstr ""
64
 
65
- #: ../image-watermark.php:302
66
  msgid "Add watermark"
67
  msgstr ""
68
 
@@ -78,236 +78,266 @@ msgstr ""
78
  msgid "Image Watermark will not work properly without GD PHP extension."
79
  msgstr ""
80
 
81
- #: ../image-watermark.php:503
82
  msgid "Settings saved."
83
  msgstr ""
84
 
85
- #: ../image-watermark.php:517
86
- msgid "Watermarks will not be applied when <b>watermark image is not set</b>."
 
 
 
 
87
  msgstr ""
88
 
89
- #: ../image-watermark.php:523
90
  msgid "Image Watermark Settings"
91
  msgstr ""
92
 
93
- #: ../image-watermark.php:527
94
  msgid "General settings"
95
  msgstr ""
96
 
97
- #: ../image-watermark.php:530
98
  msgid "Automatic watermarking"
99
  msgstr ""
100
 
101
- #: ../image-watermark.php:534 ../image-watermark.php:550
102
  msgid "on"
103
  msgstr ""
104
 
105
- #: ../image-watermark.php:536 ../image-watermark.php:552
106
  msgid "off"
107
  msgstr ""
108
 
109
- #: ../image-watermark.php:539
110
  msgid "Enable or disable watermark for uploaded images."
111
  msgstr ""
112
 
113
- #: ../image-watermark.php:546
114
  msgid "Manual watermarking"
115
  msgstr ""
116
 
117
- #: ../image-watermark.php:555
118
  msgid "Enable or disable Apply Watermark option for images in Media Library."
119
  msgstr ""
120
 
121
- #: ../image-watermark.php:562
122
  msgid "Enable watermark for"
123
  msgstr ""
124
 
125
- #: ../image-watermark.php:572
126
- msgid "Check image sizes on which watermark should appear."
 
 
127
  msgstr ""
128
 
129
- #: ../image-watermark.php:578
130
  msgid "everywhere"
131
  msgstr ""
132
 
133
- #: ../image-watermark.php:579
134
  msgid "on selected post types only"
135
  msgstr ""
136
 
137
- #: ../image-watermark.php:587
138
  msgid ""
139
  "Check custom post types on which watermark should be applied to uploaded "
140
  "images."
141
  msgstr ""
142
 
143
- #: ../image-watermark.php:593
144
  msgid "Watermark position"
145
  msgstr ""
146
 
147
- #: ../image-watermark.php:596
148
  msgid "Watermark alignment"
149
  msgstr ""
150
 
151
- #: ../image-watermark.php:611
152
  msgid "Choose the position of watermark image."
153
  msgstr ""
154
 
155
- #: ../image-watermark.php:616
156
  msgid "Watermark offset"
157
  msgstr ""
158
 
159
- #: ../image-watermark.php:619 ../image-watermark.php:699
160
  msgid "x:"
161
  msgstr ""
162
 
163
- #: ../image-watermark.php:619 ../image-watermark.php:621
164
- #: ../image-watermark.php:699 ../image-watermark.php:701
165
  msgid "px"
166
  msgstr ""
167
 
168
- #: ../image-watermark.php:621 ../image-watermark.php:701
169
  msgid "y:"
170
  msgstr ""
171
 
172
- #: ../image-watermark.php:637 ../image-watermark.php:641
173
  msgid "Watermark image"
174
  msgstr ""
175
 
176
- #: ../image-watermark.php:638
177
  msgid ""
178
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
179
  msgstr ""
180
 
181
- #: ../image-watermark.php:644
182
  msgid "Select image"
183
  msgstr ""
184
 
185
- #: ../image-watermark.php:645
186
  msgid "Turn off image"
187
  msgstr ""
188
 
189
- #: ../image-watermark.php:646
190
  msgid "You have to save changes after the selection or removal of the image."
191
  msgstr ""
192
 
193
- #: ../image-watermark.php:650
194
  msgid "Watermark preview"
195
  msgstr ""
196
 
197
- #: ../image-watermark.php:680
198
  msgid "Watermark size"
199
  msgstr ""
200
 
201
- #: ../image-watermark.php:684
202
  msgid "original"
203
  msgstr ""
204
 
205
- #: ../image-watermark.php:686
206
  msgid "custom"
207
  msgstr ""
208
 
209
- #: ../image-watermark.php:688
210
  msgid "scaled"
211
  msgstr ""
212
 
213
- #: ../image-watermark.php:691
214
  msgid "Select method of aplying watermark size."
215
  msgstr ""
216
 
217
- #: ../image-watermark.php:696
218
  msgid "Watermark custom size"
219
  msgstr ""
220
 
221
- #: ../image-watermark.php:703
222
  msgid "Those dimensions will be used if \"custom\" method is selected above."
223
  msgstr ""
224
 
225
- #: ../image-watermark.php:707
226
  msgid "Scale of watermark in relation to image width"
227
  msgstr ""
228
 
229
- #: ../image-watermark.php:712
230
  msgid ""
231
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
232
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
233
  "width of the image it is applied to."
234
  msgstr ""
235
 
236
- #: ../image-watermark.php:716
237
  msgid "Watermark transparency / opacity"
238
  msgstr ""
239
 
240
- #: ../image-watermark.php:721
241
  msgid ""
242
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
243
  "transparent, 100 shows it as is."
244
  msgstr ""
245
 
246
- #: ../image-watermark.php:727
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  msgid "Image protection"
248
  msgstr ""
249
 
250
- #: ../image-watermark.php:730
251
  msgid "Disable right mouse click on images"
252
  msgstr ""
253
 
254
- #: ../image-watermark.php:734
255
  msgid "Prevent drag and drop"
256
  msgstr ""
257
 
258
- #: ../image-watermark.php:738
259
  msgid "Enable image protection for logged-in users also"
260
  msgstr ""
261
 
262
- #: ../image-watermark.php:743
263
  msgid "Save Changes"
264
  msgstr ""
265
 
266
- #: ../image-watermark.php:749
267
  msgid "Image Watermark"
268
  msgstr ""
269
 
270
- #: ../image-watermark.php:751
271
  msgid "Need support?"
272
  msgstr ""
273
 
274
- #: ../image-watermark.php:752
275
  msgid ""
276
  "If you are having problems with this plugin, please talk about them in the"
277
  msgstr ""
278
 
279
- #: ../image-watermark.php:752
280
  msgid "Support forum"
281
  msgstr ""
282
 
283
- #: ../image-watermark.php:754
284
  msgid "Do you like this plugin?"
285
  msgstr ""
286
 
287
- #: ../image-watermark.php:755
288
  msgid "Rate it 5"
289
  msgstr ""
290
 
291
- #: ../image-watermark.php:755
292
  msgid "on WordPress.org"
293
  msgstr ""
294
 
295
- #: ../image-watermark.php:756
296
  msgid "Blog about it & link to the"
297
  msgstr ""
298
 
299
- #: ../image-watermark.php:756
300
  msgid "plugin page"
301
  msgstr ""
302
 
303
- #: ../image-watermark.php:757
304
  msgid "Check out our other"
305
  msgstr ""
306
 
307
- #: ../image-watermark.php:757
308
  msgid "WordPress plugins"
309
  msgstr ""
310
 
311
- #: ../image-watermark.php:761
312
  msgid "Created by"
313
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
+ "POT-Creation-Date: 2013-06-10 16:48+0100\n"
5
+ "PO-Revision-Date: 2013-06-10 16:48+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
  "Language-Team: dFactory <info@dfactory.pl>\n"
8
  "Language: English\n"
22
  "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher."
23
  msgstr ""
24
 
25
+ #: ../image-watermark.php:149
26
  msgid ""
27
  "Watermark couldn't be applied to selected images or no images were selected."
28
  msgstr ""
29
 
30
+ #: ../image-watermark.php:153
31
  #, php-format
32
  msgid "Watermark was succesfully applied to 1 image."
33
  msgid_plural "Watermark was succesfully applied to %s images."
34
  msgstr[0] ""
35
  msgstr[1] ""
36
 
37
+ #: ../image-watermark.php:217
38
  msgid "Support"
39
  msgstr ""
40
 
41
+ #: ../image-watermark.php:239
42
  msgid "Settings"
43
  msgstr ""
44
 
45
+ #: ../image-watermark.php:270
46
  msgid "Apply watermark"
47
  msgstr ""
48
 
49
+ #: ../image-watermark.php:294
50
  msgid "Select watermark"
51
  msgstr ""
52
 
53
+ #: ../image-watermark.php:295 ../image-watermark.php:686
54
  msgid "Original size"
55
  msgstr ""
56
 
57
+ #: ../image-watermark.php:296 ../image-watermark.php:680
58
  msgid "Watermak has not been selected yet."
59
  msgstr ""
60
 
61
+ #: ../image-watermark.php:297
62
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
63
  msgstr ""
64
 
65
+ #: ../image-watermark.php:299
66
  msgid "Add watermark"
67
  msgstr ""
68
 
78
  msgid "Image Watermark will not work properly without GD PHP extension."
79
  msgstr ""
80
 
81
+ #: ../image-watermark.php:508
82
  msgid "Settings saved."
83
  msgstr ""
84
 
85
+ #: ../image-watermark.php:525
86
+ msgid "Watermark will not be applied when <b>watermark image is not set</b>."
87
+ msgstr ""
88
+
89
+ #: ../image-watermark.php:530
90
+ msgid "Watermark will not be applied when <b>no image sizes are selected</b>."
91
  msgstr ""
92
 
93
+ #: ../image-watermark.php:538
94
  msgid "Image Watermark Settings"
95
  msgstr ""
96
 
97
+ #: ../image-watermark.php:542
98
  msgid "General settings"
99
  msgstr ""
100
 
101
+ #: ../image-watermark.php:545
102
  msgid "Automatic watermarking"
103
  msgstr ""
104
 
105
+ #: ../image-watermark.php:549 ../image-watermark.php:565
106
  msgid "on"
107
  msgstr ""
108
 
109
+ #: ../image-watermark.php:551 ../image-watermark.php:567
110
  msgid "off"
111
  msgstr ""
112
 
113
+ #: ../image-watermark.php:554
114
  msgid "Enable or disable watermark for uploaded images."
115
  msgstr ""
116
 
117
+ #: ../image-watermark.php:561
118
  msgid "Manual watermarking"
119
  msgstr ""
120
 
121
+ #: ../image-watermark.php:570
122
  msgid "Enable or disable Apply Watermark option for images in Media Library."
123
  msgstr ""
124
 
125
+ #: ../image-watermark.php:577
126
  msgid "Enable watermark for"
127
  msgstr ""
128
 
129
+ #: ../image-watermark.php:586
130
+ msgid ""
131
+ "Check image sizes on which watermark should appear. <b>Notice:</b> checking "
132
+ "full size is not recommened as it's the original image."
133
  msgstr ""
134
 
135
+ #: ../image-watermark.php:592
136
  msgid "everywhere"
137
  msgstr ""
138
 
139
+ #: ../image-watermark.php:593
140
  msgid "on selected post types only"
141
  msgstr ""
142
 
143
+ #: ../image-watermark.php:601
144
  msgid ""
145
  "Check custom post types on which watermark should be applied to uploaded "
146
  "images."
147
  msgstr ""
148
 
149
+ #: ../image-watermark.php:607
150
  msgid "Watermark position"
151
  msgstr ""
152
 
153
+ #: ../image-watermark.php:610
154
  msgid "Watermark alignment"
155
  msgstr ""
156
 
157
+ #: ../image-watermark.php:625
158
  msgid "Choose the position of watermark image."
159
  msgstr ""
160
 
161
+ #: ../image-watermark.php:630
162
  msgid "Watermark offset"
163
  msgstr ""
164
 
165
+ #: ../image-watermark.php:633 ../image-watermark.php:713
166
  msgid "x:"
167
  msgstr ""
168
 
169
+ #: ../image-watermark.php:633 ../image-watermark.php:635
170
+ #: ../image-watermark.php:713 ../image-watermark.php:715
171
  msgid "px"
172
  msgstr ""
173
 
174
+ #: ../image-watermark.php:635 ../image-watermark.php:715
175
  msgid "y:"
176
  msgstr ""
177
 
178
+ #: ../image-watermark.php:651 ../image-watermark.php:655
179
  msgid "Watermark image"
180
  msgstr ""
181
 
182
+ #: ../image-watermark.php:652
183
  msgid ""
184
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
185
  msgstr ""
186
 
187
+ #: ../image-watermark.php:658
188
  msgid "Select image"
189
  msgstr ""
190
 
191
+ #: ../image-watermark.php:659
192
  msgid "Turn off image"
193
  msgstr ""
194
 
195
+ #: ../image-watermark.php:660
196
  msgid "You have to save changes after the selection or removal of the image."
197
  msgstr ""
198
 
199
+ #: ../image-watermark.php:664
200
  msgid "Watermark preview"
201
  msgstr ""
202
 
203
+ #: ../image-watermark.php:694
204
  msgid "Watermark size"
205
  msgstr ""
206
 
207
+ #: ../image-watermark.php:698
208
  msgid "original"
209
  msgstr ""
210
 
211
+ #: ../image-watermark.php:700
212
  msgid "custom"
213
  msgstr ""
214
 
215
+ #: ../image-watermark.php:702
216
  msgid "scaled"
217
  msgstr ""
218
 
219
+ #: ../image-watermark.php:705
220
  msgid "Select method of aplying watermark size."
221
  msgstr ""
222
 
223
+ #: ../image-watermark.php:710
224
  msgid "Watermark custom size"
225
  msgstr ""
226
 
227
+ #: ../image-watermark.php:717
228
  msgid "Those dimensions will be used if \"custom\" method is selected above."
229
  msgstr ""
230
 
231
+ #: ../image-watermark.php:721
232
  msgid "Scale of watermark in relation to image width"
233
  msgstr ""
234
 
235
+ #: ../image-watermark.php:726
236
  msgid ""
237
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
238
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
239
  "width of the image it is applied to."
240
  msgstr ""
241
 
242
+ #: ../image-watermark.php:730
243
  msgid "Watermark transparency / opacity"
244
  msgstr ""
245
 
246
+ #: ../image-watermark.php:735
247
  msgid ""
248
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
249
  "transparent, 100 shows it as is."
250
  msgstr ""
251
 
252
+ #: ../image-watermark.php:739
253
+ msgid "Image quality"
254
+ msgstr ""
255
+
256
+ #: ../image-watermark.php:744
257
+ msgid "Set watermark image quality."
258
+ msgstr ""
259
+
260
+ #: ../image-watermark.php:748
261
+ msgid "Image format"
262
+ msgstr ""
263
+
264
+ #: ../image-watermark.php:752
265
+ msgid "baseline"
266
+ msgstr ""
267
+
268
+ #: ../image-watermark.php:754
269
+ msgid "progressive"
270
+ msgstr ""
271
+
272
+ #: ../image-watermark.php:758
273
+ msgid "Select baseline or progressive image format."
274
+ msgstr ""
275
+
276
+ #: ../image-watermark.php:764
277
  msgid "Image protection"
278
  msgstr ""
279
 
280
+ #: ../image-watermark.php:767
281
  msgid "Disable right mouse click on images"
282
  msgstr ""
283
 
284
+ #: ../image-watermark.php:771
285
  msgid "Prevent drag and drop"
286
  msgstr ""
287
 
288
+ #: ../image-watermark.php:775
289
  msgid "Enable image protection for logged-in users also"
290
  msgstr ""
291
 
292
+ #: ../image-watermark.php:780
293
  msgid "Save Changes"
294
  msgstr ""
295
 
296
+ #: ../image-watermark.php:786
297
  msgid "Image Watermark"
298
  msgstr ""
299
 
300
+ #: ../image-watermark.php:788
301
  msgid "Need support?"
302
  msgstr ""
303
 
304
+ #: ../image-watermark.php:789
305
  msgid ""
306
  "If you are having problems with this plugin, please talk about them in the"
307
  msgstr ""
308
 
309
+ #: ../image-watermark.php:789
310
  msgid "Support forum"
311
  msgstr ""
312
 
313
+ #: ../image-watermark.php:791
314
  msgid "Do you like this plugin?"
315
  msgstr ""
316
 
317
+ #: ../image-watermark.php:792
318
  msgid "Rate it 5"
319
  msgstr ""
320
 
321
+ #: ../image-watermark.php:792
322
  msgid "on WordPress.org"
323
  msgstr ""
324
 
325
+ #: ../image-watermark.php:793
326
  msgid "Blog about it & link to the"
327
  msgstr ""
328
 
329
+ #: ../image-watermark.php:793
330
  msgid "plugin page"
331
  msgstr ""
332
 
333
+ #: ../image-watermark.php:794
334
  msgid "Check out our other"
335
  msgstr ""
336
 
337
+ #: ../image-watermark.php:794
338
  msgid "WordPress plugins"
339
  msgstr ""
340
 
341
+ #: ../image-watermark.php:798
342
  msgid "Created by"
343
  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: 3.5.1
7
- Stable tag: 1.1.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -27,6 +27,8 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
27
  * Select post types where watermark will be aplied to images or select adding watermark during any image upload
28
  * Select from 3 methods of aplying watermark size: original, custom or scaled
29
  * Set watermark transparency / opacity
 
 
30
  * Protect your images from copying via drag&drop
31
  * Disable right mouse click on images
32
  * Disable image protection for logged-in users
@@ -51,6 +53,12 @@ No questions yet.
51
 
52
  == Changelog ==
53
 
 
 
 
 
 
 
54
  = 1.1.1 =
55
  * New: Added option to enable or disable manual watermarking in Media Library
56
  * Fix: Apply watermark option not visible in Media Library actions
@@ -84,4 +92,6 @@ Initial release
84
 
85
  == Upgrade Notice ==
86
 
87
- New: Added option to enable or disable manual watermarking in Media Library
 
 
4
  Tags: image, images, picture, photo, watermark, watermarking, protection, image protection, image security, plugin
5
  Requires at least: 3.5
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.1.2
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
27
  * Select post types where watermark will be aplied to images or select adding watermark during any image upload
28
  * Select from 3 methods of aplying watermark size: original, custom or scaled
29
  * Set watermark transparency / opacity
30
+ * Select image format (baseline or progressive)
31
+ * Set image quality
32
  * Protect your images from copying via drag&drop
33
  * Disable right mouse click on images
34
  * Disable image protection for logged-in users
53
 
54
  == Changelog ==
55
 
56
+ = 1.1.2 =
57
+ * New: Image quality option
58
+ * New: Image format selection (progressive or baseline)
59
+ * Fix: Error when getimagesize() is not available on some servers
60
+ * Tweak: Files & class naming conventions
61
+
62
  = 1.1.1 =
63
  * New: Added option to enable or disable manual watermarking in Media Library
64
  * Fix: Apply watermark option not visible in Media Library actions
92
 
93
  == Upgrade Notice ==
94
 
95
+ = 1.1.2 =
96
+
97
+ Bugfix release. Added image quality & image format options.