Share this topic on AskShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: [Script-Fu] Hidden Watermarks  (Read 1262 times)

0 Members and 1 Guest are viewing this topic.

Offline gimprotect

  • Member
  • **
  • Posts: 51
  • Karma: 0
[Script-Fu] Hidden Watermarks
« Reply #10 on: March 23, 2010, 11:11:49 AM »

Here's my suggestion as how to work around the preview issue:  The basic concept for the script uses a pre-made pattern called "Watermark".

First of all: Your scripts interface looks and feels great so far! Somehow I could not find the place where to put my own bump-map picture.
I then used one of those default patterns that come with GIMP. Upon plugging everything the script required and setting the 'save-to'-location to be the desktop, the script executed fine, but I couldn´t find the patched image. Please give me a nudge on how to do it correctly, fencepost.

Lastly, should the script always perform the bump map/hidden watermark steps or should there be the option to choose?

You mean an option to chose between either one or to use both? Yes, that would a neat feature! There should be three small checkboxes to set either just "Hidden Watermark" (which would be the watermarking text), just "BumpMap" (that would be the custom image created by the user) or "Full Protection" (hidden watermark AND BumpMap). Another option would be to use TWO checkboxes: Just "Hidden Watermark" and "BumpMap [Full Protection]" (which would include the hidden watermark text as well). Having the BumpMap include the hidden watermark is probably the best choice.

Refresh your scripts and, for the time being, the script is found under File > Watermark... (if you have other suggestions where this should be placed in the menus, please advise).

Hm... there´s only one location where it could fit in as well and that would be "Picture". But I really like where it is right now - so keep it that way!

-gimprotect
« Last Edit: March 23, 2010, 11:24:45 AM by gimprotect »
Check it Out: Hidden Watermarks in GIMP Thanks fence!

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
[Script-Fu] Hidden Watermarks
« Reply #11 on: March 23, 2010, 11:31:06 AM »
First of all: Your scripts interface looks and feels great so far! Somehow I could not find the place where to put my own bump-map picture. I then used one of those default patterns that come with GIMP. Upon plugging everything the script required and setting the 'save-to'-location to be the desctop, the script executed fine, but I couldn´t find the patched image. Please give me a nudge on how to do it correctly, fencepost.

The image that will be used to perform the bump map will be a pattern.   Create a new image with a transparent background and the desired size of the watermark.  Create your watermark as desired and then go to File > Save As.  Point GIMP to your patterns folder and type in the name "Watermark.pat".  (Since you're using Linux, I'm not sure where your pattern  folder is, but I assume it should be under the same folder tree as your scripts folder. )  GIMP will probably ask for a description.  Put whatever you want to describe the pattern.  This shows up in the pattern options window.  I always just retype the name without the pat extension.  Save and then refresh your patterns.  It should then appear.  I've attached a simple pattern for you to install and try.  (See attachment link at very bottom of post....may be hard to find because the link is in small writing.)

Quote
You mean an option to chose between either one or to use both? Yes, that would a neat feature! There should be three small checkboxes to set either just "hidden watermark" (which would be the watermarking text), just "BumpMap" (that would be the custom image created by the user) or "Full Protection" (hidden watermark AND BumpMap). Another option would be to limited the settings to just "Hidden Watermark" and "BumpMap [Full Protection]" (which would include the hidden watermark text as well). Having the BumpMap include the hidden watermark is probably the best choice.

Correct.  Instead of three separate check boxes, there will be a dropdown such as: Perform bump map and hidden watermark, Perform bump map only, or Perform hidden watermark only.  If you think you'll always use both, I won't add the option, but it's easier to code in now than having to go back in later.

Quote
Hm... there´s only one location where it could fit in as well and that would be "Picture". But I really like where it is right now - so keep it that way!

I'll leave it there then.

Art
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline gimprotect

  • Member
  • **
  • Posts: 51
  • Karma: 0
[Script-Fu] Hidden Watermarks
« Reply #12 on: March 23, 2010, 01:11:50 PM »

(Since you're using Linux, I'm not sure where your pattern  folder is, but I assume it should be under the same folder tree as your scripts folder. )

Partially true. My main system is OpenSuse - and that computer isn´t available right now. At the moment testing will only take place on my MAC.

Correct.  Instead of three separate check boxes, there will be a dropdown such as: Perform bump map and hidden watermark, Perform bump map only, or Perform hidden watermark only.  If you think you'll always use both, I won't add the option, but it's easier to code in now than having to go back in later.

Hmm... do I get this right? According to the your above statement it seems you consider having these THREE separate options best.
Ok, makes sense to me too. As for my part, I´ll probably use the bump map together with the hidden watermark most of times.

For a preview, on a test image, add a new, transparent layer above the image (make the transparent layer the same size as your pattern) and fill the transparent layer with the pattern.  Then, make your image layer active and manually run the bump map filter to see what looks good to you.

Here are my test results I´d like to receive some feedback to: Placing the unzipped and to "Watermark.pat" renamed pattern you sent me into the Patterns folder did not quit GIMPs notification of "Error while calling >>gimp-pattern-get-pixels<<. Pattern 'Watermark' not found". I then used another pattern I had created previously (not sure how it got stored even though it doesn´t appear in the "Patterns"-folder) to mark the transparent layer with the bucket fill, adjusted the opacity of the hidden watermark from GIMPs panel and saved the image. Next step: The bump map. I somehow can´t get that to work. Upon playing with the options in the watermarking panel and applying your provided pattern (the one with the small circles?) I can´t find the watermarked image on the desktop. Then again, that might be because I´m using your script on my MAC right now...  ;)

Please correct me on the mentioned steps above in order to be able to fully test the script. If there´s anything else I can do for ya, let me know!

-gimprotect
« Last Edit: March 23, 2010, 01:36:38 PM by gimprotect »
Check it Out: Hidden Watermarks in GIMP Thanks fence!

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
[Script-Fu] Hidden Watermarks
« Reply #13 on: March 23, 2010, 01:57:27 PM »
Here are my test results I´d like to receive some feedback to: Placing the unzipped and to "Watermark.pat" renamed pattern you sent me into the Patterns folder did not quit GIMPs notification of "Error while calling >>gimp-pattern-get-pixels<<. Pattern 'Watermark' not found". I then used another pattern I had created previously (not sure how it got stored even though it doesn´t appear in the "Patterns"-folder) to mark the transparent layer with the bucket fill, adjusted the opacity of the hidden watermark from GIMPs panel and saved the image. Next step: The bump map. I somehow can´t get that to work. Upon playing with the options in the watermarking panel and applying your provided pattern (the one with the small circles?) I can´t find the watermarked image on the desktop. Then again, that might be because I´m using your script on my MAC right now...  ;)

Please correct me on the mentioned steps above in order to be able to fully test the script. If there´s anything else I can do for ya, let me know!

Ok, I accidently named the pattern I uploaded incorrectly.  I've attached a renamed version to this post.  Hopefully that will correct the problem.

I'm not sure if I understand all the steps you took, but when you say you adjusted the opacity of the "hidden" watermark from GIMP's panel and saved the image, I don't follow.  At this point, there is no hidden watermark in the script.  My suggestion was for you to be able to see how the pattern worked with the bump map settings because I've decided against incorporating a mechanism for previewing. 

When you put the pattern in your patterns folder, you need to add the pattern to a transparent layer.  The pattern will be used to bump map the image.  If you want to see what the bump will look like, you need to make the image layer (not the pattern layer) active and then run the bump map filter.  In the "Bump Map" drop down, pick the layer that contains the pattern.  Depending on where the layer is located with regard to the image, you may have to move the preview window sliders around to see it.  Then, experiment with the settings til you get something you like.  Write down those values.  Next, run the script and when the script dialog appears, plug the values you wrote down into the script and choose OK.  You need to point the script to the folder containing the image(s) you want to experiment with as well as the folder where they will be saved.

If you don't want to see what the bump map settings look like, then don't follow the instructions above.  Just put the watermark pattern in your patterns folder, run the script using all the defaults (with the exception of the folder locations/file names) and when the script is finished running, open the folder where you told the script to save the images and see if the watermark was applied.

Not sure if I'm helping at this point.

Posted on: March 23, 2010, 03:35:51 PM
Here's some images to assist with what I'm getting at>

Starting Image:



Look in the pattern dialog and note the size of the pattern.  In this case it's 125X75



Add a new transparent layer to the starting image with the same dimensions as the pattern:



Here's what the starting image layer dialog now looks like:



The new layer is positioned here on the image:



But I moved it to the center like so:



Now, go back to your pattern dialog, click on the watermark and drag the pattern to your image window to fill your new layer:



Make your image layer active (highlighted in blue)



Open the bump map filter and move the preview window sliders until you can see the pattern and experiment with the settings until you get something you like. 



When you get the settings you want to use, write them down.  These steps are only for you to see how the pattern will affect the image.  Now, run the script, replace the default script values with those you wrote down, and run the script on the folder of images you wish to watermark.

Let me know if I need to provide further clarification.

Art



I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline gimprotect

  • Member
  • **
  • Posts: 51
  • Karma: 0
[Script-Fu] Hidden Watermarks
« Reply #14 on: March 23, 2010, 02:23:48 PM »

Ok, I accidently named the pattern I uploaded incorrectly.  I've attached a renamed version to this post.  Hopefully that will correct the problem.

Hm... strange, I still receive the error I mentioned before when calling your script on top the transparent layer over the original image. How come?

I'm not sure if I understand all the steps you took, but when you say you adjusted the opacity of the "hidden" watermark from GIMP's panel and saved the image, I don't follow.  At this point, there is no hidden watermark in the script.  My suggestion was for you to be able to see how the pattern worked with the bump map settings because I've decided against incorporating a mechanism for previewing.

Ok, in short I put a transparent layer on top of the original image and then used GIMPs "Bucket Fill" to fill the layer with a pattern, which is selectable through GIMPS panel. But if you say that the option for hidden watermarks isn´t integrated yet, that step isn´t part of the process.

When you put the pattern in your patterns folder, you need to add the pattern to a transparent layer.  The pattern will be used to bump map the image.  If you want to see what the bump will look like, you need to make the image layer (not the pattern layer) active and then run the bump map filter.  In the "Bump Map" drop down, pick the layer that contains the pattern.  Depending on where the layer is located with regard to the image, you may have to move the preview window sliders around to see it.  Then, experiment with the settings til you get something you like.  Write down those values.  Next, run the script and when the script dialog appears, plug the values you wrote down into the script and choose OK.  You need to point the script to the folder containing the image(s) you want to experiment with as well as the folder where they will be saved.

Ok, seems I couldn´t apply the watermark yet - partially due to the error I mentioned previously. Please tell me how to get that out of the way.

-gimprotect
« Last Edit: March 23, 2010, 02:57:13 PM by gimprotect »
Check it Out: Hidden Watermarks in GIMP Thanks fence!


Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
[Script-Fu] Hidden Watermarks
« Reply #15 on: March 23, 2010, 02:37:27 PM »
I added some pictures to my previous post to help explain what I was trying to get at.  I think there's a communication breakdown at this point and I think I've overly complicated things.  The only reason I provided all those extra steps was for you to see how the pattern would look in the bump map window.  To simplify things, I recommend that you forget everything I explained above.  I think I figured out why you're still getting the error with the pattern is that the description is what the script is trying to recognize.  Since the description was called Gimprotect Pattern, it wasn't working.  So, I've attached another pattern for you to try. Please delete all the other patterns I uploaded.  Refresh your patterns.

Now, run the script on a folder of images that you don't mind if they are altered.  Don't do any of the steps I mentioned above.  The main thing is that I want to see if the script works for you.  If it saves the images and they are watermarked, then I will start adding the final steps to the script.
« Last Edit: March 23, 2010, 02:47:21 PM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline gimprotect

  • Member
  • **
  • Posts: 51
  • Karma: 0
[Script-Fu] Hidden Watermarks
« Reply #16 on: March 23, 2010, 02:53:39 PM »

I added some pictures to my previous post to help explain what I was trying to get at.  I think there's a communication breakdown at this point and I think I've overly complicated things.

Aww... thanks, how sweet of you! I guess I´ve confused you by now. Sorry 'bout that, honey.  :D

Now, run the script on a folder of images that you don't mind if they are altered.  Don't do any of the steps I mentioned above.  The main thing is that I want to see if the script works for you.

Postive result of the new pattern you attached is that the error doesn´t occur anymore and that i finally found it in the pattern box as well. Unfortunately the script still doesn´t seem to save the image after executing it on the folder specified, can´t find any patched images..

-gimprotect
« Last Edit: March 23, 2010, 02:54:55 PM by gimprotect »
Check it Out: Hidden Watermarks in GIMP Thanks fence!

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
[Script-Fu] Hidden Watermarks
« Reply #17 on: March 23, 2010, 03:04:03 PM »
Can't you post a screenshot of the script dialog so I can see what settings you're using?
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline gimprotect

  • Member
  • **
  • Posts: 51
  • Karma: 0
[Script-Fu] Hidden Watermarks
« Reply #18 on: March 23, 2010, 03:26:02 PM »

Can't you post a screenshot of the script dialog so I can see what settings you're using?

I´ve tried once more using your short tutorial mentioned on the previous page. Everything works great up to the last step, then after executing the script it just does not seem to save the final result. See, I specify the folder with the images to be watermarked, then I set the values I previously wrote down and then -very important- set the location where the images should be saved to, which would be the dektop here. As I said, the script executes fine and I´m having no problems at all using it. The only issue seems to be the saving process right now. Great work so far! 

-gimprotect
« Last Edit: March 23, 2010, 03:26:27 PM by gimprotect »
Check it Out: Hidden Watermarks in GIMP Thanks fence!

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
[Script-Fu] Hidden Watermarks
« Reply #19 on: March 23, 2010, 03:40:09 PM »
Can other GIMPers test out the script and see if you get it to save the images?
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Tags: