Marekki’s Watermark works fine with WordPress 2.7
Marekkis Watermark Plugin 0.8 works now fine with the new version 2.7 of WordPress. The installation is similar to the installation of 2.6. But you must insert the code in a different place! Please see step 6 of the updated installation instructions.
Have fun.
Marekki
December 17th, 2008 at 21:38
hi, it resized the thumb watermark, thanks
take care
December 27th, 2008 at 13:24
Hi Marekki
I would like to have image compression so I go to wm_function.php
and I found this “ImageJPEG($photoImage,$file,100);”
0-100% …. It’s a compression number,right?
Can I change number from 100 to 80 for decrease file size after watermark
I see this function between line 107-131
if(($mmPreview == “Preview”) || ($mmPreview == “NOP”)){
header(“Content-type: image/jpeg”);
ImageJPEG($photoImage,NULL,100);
}
else {
if (function_exists(‘exif_imagetype’)) {
switch(exif_imagetype($file)) {
case 2: ImageJPEG($photoImage,$file,100);break;
case 1: if (function_exists(“imagegif”)) {
ImageGif($photoImage,$file);
}
else {
ImageJPEG($photoImage,$file,100);
$filename=str_replace(‘gif’,'jpg’,$filename);
}
break;
case 3: ImagePNG($photoImage,$file);break;
}
}
else {
switch(MM_CheckFile_WM($file)) {
case “jpg”: ImageJPEG($photoImage,$file,100);break;
case “gif”: if (function_exists(“imagegif”)) {
ImageGif($photoImage,$file);
}
else {
ImageJPEG($photoImage,$file,100);
$filename=str_replace(‘gif’,'jpg’,$filename);
}
break;
case “png”: ImagePNG($photoImage,$file);break;
}
}
}
ImageDestroy($photoImage);
ImageDestroy($imageLogo);
}
I don’t know what this function can do but I think it maybe about image compression thing
thank
December 28th, 2008 at 17:49
Hi Nadia,
you are right. The number after the $file set the quality of the output picture. This question are answered here!
“instead of 100 you can insert a other value between 0 and 100. this is the quality value in %. then lower your number then lower the quality and filesize.”
Best Wishes to Australia! And Happy New Year!
Marekki
December 29th, 2008 at 12:45
Thanks
Happy New Year !!!!
January 1st, 2009 at 12:41
Hey Marekki. Awesome plug-in!I had some problems when I installed the plugin. Some of the Watermark PHP files have the short open tag ( <? ) instead of the standard open tag ( <?php ), which caused me major problems with all my admin pages.The fix: Replace the instances on the first lines of all the *.php files (except for index.php, which already has the long tag).Sorry if this is repeating anything already discussed, but I Googled and couldn’t find any info on it.
January 10th, 2009 at 15:35
Hi,
I just downloaded the plugin and checked the md5 sum. The sum is NOT the same.
Is your website / plugin hacked or did you forget to update the sum?
MD5 (watermark-0.8-with-fonts.zip) = 018db88d9546d8e9febff277a393addc
ps I found two instances of your website:
http://watermark.malcherek.com/
http://www.wp-watermark.com/
Both look the same. Advice: only use one domain. How can people see now the difference between your website and a fake phishing website (distributing hacked plugins).
February 16th, 2009 at 8:35
Hi Marekki, can u make a option on watermark plugin to make watermark in random positions?
February 17th, 2009 at 1:13
This is a wonderful plugin, thank you so much for it! One thing that would be nice though is to be able to resize the watermark to a certain percentage or pixels. Or if it’s possible to resize image when I upload them before the watermark is applied that would be cool too.
My main issue is that when I upload large images straight off my digital camera, the watermark I made is too tiny, but if I make the watermark bigger it is too big on smaller images.
Thanks again though, great job!
February 17th, 2009 at 1:14
I apologize, when I read it I realized that I wasn’t clear. I mean it would be nice to resize the watermark images, I know that the text can be resized.
February 27th, 2009 at 14:06
Is anyone aware of a problem with the watermarking of images within a directory of an addon domain?
The reason I ask is that I have space with an hosting company that allows 5 domains. I have the main domain and 1 (one) other domain added in the cpanel. The problem i have is the watermarking software will not watermark the images within the http://www.example.co.uk directory but will watermark the images outside of this……
IE: the original root directory http://www.originalexample.co.uk.
I have set up a subdomain test.example.co.uk and installed wordpress 2.7 and this plugin in and all is fine for the watermarking of images.
so basically I have a root folder of exampleoriginal.co.uk and within this is one folder ( via addon domain in cpanel ) named http://www.example.co.uk with wordpress 2.7 installed via cpanel and I also have another folder named test with wordpress 2.7 installed the same way. The test folder is the subdomain of example.co.uk and therefore recide outside of the root of example.co.uk, and is a fully functional site with watermark capabilities.
I have had correspondence with the hosting company and pointed all of the mention out to them and they say that the problem would possibly lie with the developer.
——————————————————————————————————————————
QUOTE:
“I’ve been unable to find any reason for this. The only thing I can think of is if a path setting was incorrect within the wordpress configuration but I cannot find anything obvious.
The developer may be able to solve the problem and they may have comes across the problem before.”.
—————————————————————————————————————————–
Does/has this happened to anyone else?
Cheers JohnB
February 27th, 2009 at 21:20
There seems to be a problem with the plugin (& WP v2.7.1) when a domain is hosted on a server that has several other domains on there as well (i.e. the rootpath is not the same) or something…
I’m no techie but here’s a forumpost about it:
http://www.wp-watermark.com/forum?forum=1&topic=17&page=1
March 1st, 2009 at 7:29
The only issue with the plugin is the fact it resizes the image AFTER the watermark is applyed.
Isn’t there any way to apply the watermark after the resizing?
It would be perfect!
March 9th, 2009 at 12:37
thanks for your effort, however after i installed with your steps in wordpress 2.7.1, but the watermark did not show in the pics. how to slove?
March 17th, 2009 at 16:57
Hi,
This plugin works fine but when I choose create watermark no then I get bunch of errors, imagedestory supplied argument is not valid. It does not create watermark well on animated images so I do not want to create watermark on it. There is also another bug when I deactivate the plugin it still creates the watermark. Please check these problems.
Thanks
April 1st, 2009 at 0:23
Спасибо автору за полезную информацию
April 3rd, 2009 at 23:14
Thanks for taking a few of us.
April 13th, 2009 at 3:57
nothing but a blank page in 2.71
wil see if the php tag is missing but doesnt work,
when i click on watermark in options takes me to a blank page
May 14th, 2009 at 14:16
Thanks man!
May 24th, 2009 at 12:33
Shouldn’t the media.php code be.. ?
if(function_exists(‘MM_Execute_WM’))
{
MM_Execute_WM($file,”);
}
It would be more secure and fail-safe.
May 30th, 2009 at 12:36
Хм, к размышлению…
June 7th, 2009 at 19:21
wow!!!!!!!!!!!!!!!!
i was just thinking about this plugin b4 week , but i hadnt the actual keywords for google, coz i had planned to search for text watermarking , great job , lots of thanks let me test and come back to u r blog again
June 11th, 2009 at 18:59
Has anyone tried watermark with WP 2.8, I’ve just updated to WP 2.8 this morning and found out that watermark doesn’t work anymore.
June 12th, 2009 at 16:20
go to wp-admin\includes\media.php and then line 227-228 and add the codes
// INSERT HERE!!!
MM_Execute_WM($file,”);
it should looks like
// Construct the attachment array
$attachment = array_merge( array(
‘post_mime_type’ => $type,
‘guid’ => $url,
‘post_parent’ => $post_id,
‘post_title’ => $title,
‘post_content’ => $content,
), $post_data );
// INSERT HERE!!!
MM_Execute_WM($file,”);
June 12th, 2009 at 18:39
Thank you ismail! I totally forgot about editing this file.
The line number actually is 220-222. Confirmed that WP Watermark works in WP 2.8.
June 13th, 2009 at 3:21
Just installed it, it works when i preview the water mark.
But when i upload new images or goto watermark a whole dir the image does not change.
Using WP 2.8 and have changed the media.php
// Construct the attachment array
$attachment = array_merge( array(
‘post_mime_type’ => $type,
‘guid’ => $url,
‘post_parent’ => $post_id,
‘post_title’ => $title,
‘post_content’ => $content,
), $post_data );
// INSERT HERE!!!
MM_Execute_WM($file,”);
Thanks in advance.
June 14th, 2009 at 20:57
Works in wordpress 2.8?
June 19th, 2009 at 18:33
Works for me on 2.8
great tool!
would prefer scaled watermark in some way.
the midsize image is almost impossible to see watermark.
I’ll have to play around with size to find a balance.
would also prefer to not have 2 menu items for this plugin.
June 24th, 2009 at 4:58
After I installed this in 2.8 my image uploader is now buggy. It does not show the “uploading %” bar, and also it no longer defaults the URL for the image link to the full-sized image.
I do have other image plugins installed, and am guessing it may have broken one of them. Can you tell me how to fully revert to pre-install status – it is still broken after I deactivate the plugin.
June 26th, 2009 at 13:22
@mark (previous comment)
Well, maybe if you want to uninstall it you should also correct the media.php file you edited at start
@twincascos
Problem is, I don’t know how the author would be able to change. I admit that I may be annoying in some cases to have part of the watermark appearing in the thumb img. But here is how the plugin work : When you upload a file, it will add the watermark on it automatically. Wordpress itself only resizes the img after that step :/
Nvm, seems to be working pretty well on 2.8
June 29th, 2009 at 12:36
Please help me. I uploaded the Plugin to Wordpress 2.8 and i become this error at Image Uploading i inserted the Code why ismail said it:
Warning: imagedestroy(): supplied argument is not a valid Image resource in /homepages/27/d40153161/htdocs/xbox360freaks/wp-content/plugins/watermark/wm_functions.php on line 140
8433
July 5th, 2009 at 8:07
I see a lot of people talking about editing the plugin files to get it to work. Any ideas on when we’ll get a plugin that just works without any editing in Wordpress 2.8?
July 6th, 2009 at 14:22
Does this only work with images uploaded to the directory? I like to use my flickr site but I was hoping to watermark them through my site.
July 7th, 2009 at 13:41
My watermark doesn’t appear to be showing up on the picture I posted today that I uploaded from my desktop this time.
July 10th, 2009 at 6:47
usefull plugin, i use it my several web sites, thanks Marekki
July 12th, 2009 at 6:39
wonderful plugin ..
- see these errors :
http://www.r-sn.com/wp/archives/578
Where is the problem?
Here image Excellent :
http://www.r-sn.com/wp/archives/580
—————
suggestion :
- compress size of the image .
- Add option of image retrieval (Before edit by Watermark) .
—————
thank you
July 23rd, 2009 at 15:26
[...] 2. /wordpress/wp-admin/includes/media.php 위 파일을 열어서 안에 내용에 다음과 같은 내용을 추가합니다. 원 플러그인이 2.7 기준인데 댓글에 보니 2.8 버전에서는 227 라인 뒤인 “// Construct the attachment array 와 //Save the data” 사이에추가 하면 된다고 합니다. – http://www.wp-watermark.com/2008-12-13/marekkis-watermark-works-fine-with-wordpress-27#comment-4695 [...]
August 11th, 2009 at 10:25
This image does not have a valid header…. and won’t run. WP 2.8.3
August 16th, 2009 at 5:42
If my WP (http://aaa.com) and pic (http://bbb.com) are in the different host, would the plugin does work? If the answer is no, how to modify the code to make it work?
August 30th, 2009 at 22:30
I loved reading this and I dont really like to read
November 5th, 2009 at 13:27
thanks so much for this great plaug-in! installed it on http://www.woozybmx.com and its working perfectly! thanks again!!!!
November 6th, 2009 at 9:50
oy!,
anyone cracked the wp2.8 issue yet? i came across to it now… and… i’m in trouble
spent couple of hours digging the source and i found only that there is no admin page for watermark (possibly coz there’s no add_options_page function) and therefore there are no settings in DB. wm_preview_options and wm_save_options field values in wp_options table looks like are holding all the values needed for this plugin to work but as there is no admin there are no fields like these. i got the watermark working with just hardcode hack.
basicly the var $imageLogo will no be created as the $wm_value_content (setup var) has no values. therefore the errormessage Uwe @ June 29th, 2009 at 12:36 described. if you put line:
$wm_value_content[0] = ‘Yes’;
to line 74 (BEFORE if($wm_value_content[0]==”Yes”) {) the watermark will appear (though in default place i think). so basically… if you don’t change you’re settings so often you can hardcode the massive and get the thing working
at lieast this is what i think
November 6th, 2009 at 10:22
uh oh… sorry anyone! i once a f**kin’ again followed the rule: first complain, the search
once you installed the plugin it doesn’t have the settings, but in admin panel go to Settings > Watermark and add there you want the wm and save and VOILA! it works
sorry once again
November 8th, 2009 at 17:05
Hallo,
I uploaded the plugin and I uploaded the media.php
Then I did changes in Watermark
Last I want to change Watermark-Dir, looking the right pass
enter
This happens :
You dont’t have permission to write in this directory!
whats my mistake ?
Thanks
November 13th, 2009 at 17:31
I’ve really enjoyed reading your articles. You obviously know what you are talking about! Your site is so easy to navigate too, I’ve bookmarked it in my favourites
December 6th, 2009 at 22:12
Any update?
December 13th, 2009 at 13:05
I am using WordPress 2.8.6 and this plugin doesnt work for me.
Is there any update soon?
December 16th, 2009 at 23:31
I am also using Wordpress 2.8.6 and it didnt work. Waiting for the update.
December 23rd, 2009 at 10:28
think you. good job!
January 7th, 2010 at 10:13
for me th plugin is not working. While activating the plugin it showing the error. I cant find any solution. Can you help me to install this watermark plugin. Anyone help me soon.
January 13th, 2010 at 3:11
I am using WP 2.9 and I have been able to get this to work. You just have to make sure you put the code snippet in the correct position in the media.php file. I found two instances of similar coding where I was instructed to paste the new snippet.
The correct position should put the new code at line 225/226. I put it just below this at 282 and it did not work.
The only problem I am having, and it’s not a problem as much as a complaint/request, is that the watermark is applied before resizing making the watermark absolutely tiny. Also, I didn’t realize that it was going to be doing any resizing, here I also wish there was an option…
—————
Is there somewhere that I can move the part of the code that calls to the stempel.png file? Can I move it towards the end of the script so that it applies the stempel.png after any resizing?
February 6th, 2010 at 20:34
corey, or anyone, would you be so kind as to post a code block with an indicator where the watermark snippett should be placed? i’m using wp v2.9.1, and would love to get this to work. the line numbers in media.php have probably changed since 2.9. thanks so much.
February 11th, 2010 at 17:49
[...] Wordpress существует отдельный плагин wp-watermark, который кстати можно использовать для массового [...]
February 25th, 2010 at 0:44
Great job,thank you Marekki.
I install it on my linux+apache hosting ,and the plugin work well. but when I use that on a windows+iis hosting,it seems has some issue,which maybe caused by folders permission set,but I’ve modified them in plesk panel. It show me …done,but nothing happens infact with pictures. how do I do? thank you again.