Marekki’s Watermark works fine with WordPress 3.2.1 to WordPress 3.3.1

Marekki’s Watermark can be used with the current version of WordPress up to 3.3.1

But during installation you have to insert the code twice. See install step 8.

27 Responses to “Marekki’s Watermark works fine with WordPress 3.2.1 to WordPress 3.3.1”

  1. 80后博客 China Windows XP Google Chrome 14.0.835.202 Says:

    Marekkis Watermark-Plugin is very userfull!Wellcome to “http://www.8linghou.com”,which your visit!

  2. Pyroh Estonia Windows 7 Google Chrome 15.0.874.120 Says:

    Your plugin works perfectly, but there must be option disable watermark for gif files! Or can you make hack that disables it?

  3. Marekki (Author) United Kingdom Windows XP Internet Explorer 8.0 Says:

    Hi,

    you have to edit the watermark/wm_functions.php file. The first lines ot them are:


    function MM_CheckFile_WM($checkfile) {
    list($tmpaa, $tmpab, $tmpac)=split(“\.”,$checkfile,3);
    if((empty($tmpab)) || ($tmpac!=”")) return false;
    switch($tmpab) {
    case “Gif” :
    case “GIF” :
    case “gif” : return ‘gif’;
    case “jpeg” :

    so comment out the gif cases. like:


    switch($tmpab) {
    /* case “Gif” :
    case “GIF” :
    case “gif” : return ‘gif’; */
    case “jpeg” :

    then your gif-pictures will be not watermarked.

    Best Wishes,
    Marekki.

  4. mazuki Malaysia Windows 7 Google Chrome 15.0.874.121 Says:

    anyone has test this plugin with wordpress 3.3??

  5. Custom web development services India Windows 7 Mozilla Firefox 5.0 Says:

    Hi! I seen your post. it is very informative for the people who don’t about plugins or who wants to disable their plugins. your practical example is good. thanks for sharing.

  6. ismail Turkey Windows 7 Mozilla Firefox 8.0 Says:

    yes, it is working fine with 3.3, i tested and, the code must be pasted the file line 243. thanks to Marekki
    good luck

  7. Anton Kazakhstan Windows 7 Mozilla Firefox 9.0.1 Says:

    Thanks! Everything worked nice, use it with YAPB and 3.3 (though had to edit one more file in YAPB plugin).

  8. Sara Gonzalez India Windows 7 Mozilla Firefox 5.0 Says:

    yes, it is functioning excellent with 3.3, i examined and, the value must be copied and pasted the computer file range 243. thanks to Marekki
    good luck

  9. FXBonus Slovenia Windows 7 Google Chrome 16.0.912.77 Says:

    Works great :) No more image stealing with this plugin hehe

  10. Andrei Romania Windows 7 Mozilla Firefox 12.0a2 Says:

    Hi Marekki,

    I have noticed that the watermark is added only on the full image. I was wondering if it’s possible to apply it to a custom size image created with add_image_size(). Any ideas on how can I do this?

    Thanks you and keep up the good work!

  11. xvn.alex Viet Nam Windows 7 Mozilla Firefox 8.0.1 Says:

    help. i uploading . ..

    Warning: imagedestroy() expects parameter 1 to be resource, null given in E:\xampp\htdocs\wordpress\wp-content\plugins\watermark\wm_functions.php on line 140

  12. JFMM Spain Windows XP Google Chrome 11.0.696.65 Says:

    Greetings from Spain.
    I am an amateur photographer and public blogs. The photos of my people are in:

    http://zorita01.blogspot.com/

    I hope you’ll visit me.

  13. backpackers Malaysia Windows 7 Mozilla Firefox 10.0.1 Says:

    got this :

    The plugin generated 5605 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    i’m using wp 3.3.1…

  14. TJ Martin United States Windows 7 Mozilla Firefox 10.0.2 Says:

    Plugin does not work with latest version of WordPress. I edited the correct media.php file but added to different lines as they do not correspond with above image. It does not add watermark to current images of any size :(

  15. sem calcinha Brazil Netscape Navigator 5.0 Says:

    Adoro me mostrar peladinha na web cam

  16. zuhri United States Mac OS X Google Chrome 17.0.963.56 Says:

    i have the same problem. PLugin no longer working after upgrading to wp 3.3.1

    please help.. :( :(

  17. Marekki (Author) Germany Windows 7 Mozilla Firefox 10.0.2 Says:

    After each upgrade you have to repeat the installation step! During the upgrade process the media.php file will be overwritten by the upgrade-script with a new version. So you must insert the small piece of code again. See installation steps. In media.php file of WordPress 3.3.1 the lines are changed. The new positions are 241 and 302 (see picture in installation guide). After this change Watermark-plugin will work properly again. :)

    Best wishes.
    Marekki.

  18. nadiamode Thailand Windows 7 Google Chrome 17.0.963.66 Says:

    why you dont edit your plugin to compatible with with wordpress
    and user no need to edit file everytime after upgrade

    i see some similar plugin can auto install without need to edit any file

    wordpress org/extend/plugins/transparent-image-watermark-plugin/

    you might see it source code to see how his plugin function work

  19. khaled Egypt Windows 7 Internet Explorer 9.0 Says:

    yes , Plugin does not work with latest version of WordPress

  20. Limay United States Windows Vista Mozilla Firefox 11.0 Says:

    I am using WP 3.3.1 and getting this error:
    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/54/9158354/html/wp-content/plugins/watermark/wm_functions.php on line 140
    418
    I modified media.php as instructed above. How can I fix this to use the plugin? Any help asap is appreciated, thanks!

  21. obaby Taiwan; Republic of China (ROC) Windows XP Opera 9.80 Says:

    well, since i update the wp to 3.3.2 ,the watermark plugin won’t work any more .is there any way to fix this?
    thx!

  22. ismail Turkey Windows 7 Mozilla Firefox 12.0 Says:

    hi, i tested with wp 3.4. the codes must be pasted midia.php at line 247
    good luck folk

  23. Maurizio Italy Windows 7 Google Chrome 21.0.1180.83 Says:

    it works very very well. It’s a good plugin.

  24. zyrobs Hungary Windows 7 Mozilla Firefox 16.0 Says:

    Protip: use add_filter instead of rewriting hardcoded functions in wordpress! That way you won’t have to re-add your hook every time wordpress updates its own core php files.

    In the case of your plugin, I appended wm_functions.php with this:

    add_filter(‘wp_generate_attachment_metadata’, ‘mm_applyWatermark’);
    function mm_applyWatermark($data) {
    $udir = wp_upload_dir();
    foreach ($data['sizes'] as $datas) {
    MM_Execute_WM($udir['path'].”/”.$datas['file'],”);
    }
    //MM_Execute_WM($udir['basedir'].”/”.$data['file'],”);
    return $data;
    }

    … and now it automatically works on any image upload, including external ones, internal ones, and I can even use another plugin called Regenerate Thumbnails to apply different watermarks should I want to change them. It’s also update-proof, or at least it is until they change around wp_upload_dir() and wp_generate_attachment_metadata().

    Note that this code will only apply the watermark to any resized images. If you want your original file to be watermarked too, uncomment the last MM_Execute_WM call. This will make the original files get the watermark too, but if you use any other image editing, whether inbuilt to the WordPress admin or a plugin one like Regenerate Thumbnails, then the watermark will get applied a second time to the image(s).

  25. ismail Turkey Windows NT Mozilla Firefox 17.0 Says:

    hi, i tested the Marekki’s Watermark plugin and it is running very well, and i am using it about 4 years with no error for me.
    good lock

  26. Torsten Germany Windows 7 Mozilla Firefox 16.0 Says:

    Hello, unfortunately the media.php is no longer compatible for WordPress 3.5. Can anyone tell me what needs to be changed so that the great plugin is still usable? Greetings Torsten

  27. ismail Turkey Windows NT Mozilla Firefox 18.0 Says:

    hi, it is running very well at wordpress 3.5.x, please follow the installation. Please paste the codes line 247 in the media.php
    if you any question, ask here

    take care

Leave a Reply