Update for Watermark – Works with WP 3.5.1
The new function in Marekkis Watermark 0.9 is the easy way to install the plugin. You don’t need more to edit any files of your blog nor to repeat this after every update of wordpress.
Please download the new version from our download-area. For more informations about installation or upgrade please go to the installation-guide or to the update-section.
Sepcial thanks to zyrobs for his hint.

I love the fact core files don’t need editing but I have discovered it now watermarks thumbnails as you can see in This post
Is there a way of only being able to watermark full images.
Also though not so important my preview is not working running Version 0.9 on WP 3.5.1
Thanks merekkis
Hi Pantyscoop,
usually the pictures should be re sized and the watermark should be inserted in the re sized pic. But if you need the other way, then you can make a small change in wm_functions.php file. At the bottom on this file you have to replace:
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; }with
add_filter('wp_generate_attachment_metadata', 'mm_applyWatermark'); function mm_applyWatermark($data) { $udir = wp_upload_dir(); MM_Execute_WM($udir['basedir']."/".$data['file'],''); return $data; }This will watermark only your original file not all the re-sized pics.
If you have still problems, feel free to contact me. I’ll be happy about comments and ratings on: wordpress.org/extend/plugins/marekkis-watermark
Thank you,
Marekki.
ps. If you have problems with preview you can uninstall this plugin, remove the files and install once more. This can help, otherwise you have a caching problem. in this case you have to press F5 to reload the page and to see the preview.
Now I’m working on a ajax version, but psst! is a secret!
Hi Marekki
Did as you suggested but now its not watermaking at all, I did alter the compression value from 100 to 80 because the image was 3x the original file size, but the edit is as above.
Thanks
Hi,
please don’t delete this line:
$udir = wp_upload_dir();see above.
Best wishes,
Marekki.
Excellent thankyou very much Marekki oh and psst! mums the word your secret is safe with me
the file size increases 3 time after addition of watermark. Is there any solution to this,
Hi dev,
the quality of the output file is set to 100%. This is the reason, why the file size is so big. I have this in focus for the next update. At moment you can change this only in code. So find in the file:
marekkis-watermark/wm_functions.phpthe following linesswitch(exif_imagetype($file)) { case 2: ImageJPEG($photoImage,$file,100);break;and remove “,100“. so you need only:
switch(exif_imagetype($file)) { case 2: ImageJPEG($photoImage,$file);break;After this the quality of the watermarked images will by stay at default and the size of your pictures change minimally.
Best Wishes,
Marekki.
hi, i want to ask how to preserve the IPTC of the image using wp-watermark.com, thanks
Hi courses,
sorry, but at this moment it’s not possible to save IPTC-data while watermarking. But this is not a big deal, so I’ll try to realize this in the new release.
Sorry,
Marekki.
Nice plugin, I used to spend hours together to put watermark on images. My website has thousands of images on it. Thanks. Hats off to you and really a useful plugin for everyone who uses lots of pictures on their websites.