Author Topic: Looking to watermark my picures  (Read 6562 times)

0 Members and 1 Guest are viewing this topic.

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Looking to watermark my picures
« on: Fri, 21 September 2012, 00:20:14 »
As the topic says im looking to water mark my pictures from here on out. Whats a good tool to use to do that? Also anyone up for designing a watermark for me?

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #1 on: Fri, 21 September 2012, 02:10:23 »
easiest, fastest, geekiest way? imagemagick!

composite -dissolve 50% -gravity SouthEast -quality 100 watermark.png image.jpg watermarked_image.jpg

and you can use it in a batch (say to watermark 100 images at a time).

gravity defines the watermark position, quality the output quality

Enjoy!

as per the watermark design, what are you looking for?

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #2 on: Sat, 22 September 2012, 01:50:14 »
Idk something simple that probably just says Prof but idk you have any ideas?

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #3 on: Sat, 22 September 2012, 01:58:39 »
dunno, something cowboy bebop related maybe?

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #4 on: Sat, 22 September 2012, 02:03:56 »
dunno, something cowboy bebop related maybe?
lol been thingking that maybe this



or this



they have been in my photobucket account since forever

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #5 on: Sat, 22 September 2012, 02:23:24 »
something like this?

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #6 on: Sat, 22 September 2012, 03:09:40 »
looks great

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: Looking to watermark my picures
« Reply #7 on: Sat, 22 September 2012, 03:23:39 »
Very nice, I've been wanting to watermark my pic but I don't want to spend a ton of time doing it.


Thanks guys :D
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |


Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #9 on: Sat, 22 September 2012, 03:25:16 »
im going to need to learn some more about bat files to make this more efficient because i dont want to have to enter every file name in, i know there shorcuts for that sort of thing but I just dont know what they are

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: Looking to watermark my picures
« Reply #10 on: Sat, 22 September 2012, 03:27:02 »
I'm guessing you input a folder location of the files you want watermarked and then an output folder where the new watermarked photos are going to end up once they are done.


That's my guess
« Last Edit: Sat, 22 September 2012, 03:32:34 by The_Beast »
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #11 on: Sat, 22 September 2012, 03:31:03 »
I'm guessing you input a file location of the files you want watermarked and then an output file where the new watermarked photos are going to end up once they are done.


That's my guess
yes but i believe there a way to do a batch of files without specifying every filename

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: Looking to watermark my picures
« Reply #12 on: Sat, 22 September 2012, 03:32:12 »
I'm dumb, I meant folder location not file location for both of those.
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #13 on: Sat, 22 September 2012, 03:37:21 »
bigger watermark in black and white + image test. Enjoy.

Regarding the batch imagemagick handles that for you. I'll check the syntax and get back to you

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #14 on: Sat, 22 September 2012, 03:40:35 »
did a test is there anyway that i can make the watermark a certain percentage of the picture

and i hope someone knows more about batch processing than me

but thanks for all the help so far Matt3to everything is working so far

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #15 on: Sat, 22 September 2012, 03:42:29 »
bigger watermark in black and white + image test. Enjoy.

Regarding the batch imagemagick handles that for you. I'll check the syntax and get back to you
wow looking great!

Offline tp4tissue

  • * Destiny Supporter
  • Posts: 13571
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: Looking to watermark my picures
« Reply #16 on: Sat, 22 September 2012, 03:59:15 »
Why are you guys not using photoshop. Batch is Super easy..

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Re: Looking to watermark my picures
« Reply #17 on: Sat, 22 September 2012, 04:01:52 »
Why are you guys not using photoshop. Batch is Super easy..
i guess i could use that idk i have photoshop but dont use it for all that much probably cause i dont know its potential.

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #18 on: Sat, 22 September 2012, 04:02:52 »
it seems "composite" can't act on folders, but only on single files. So you indeed need a batch file

If you are on windows this should work

Code: [Select]
for %%F in (*.jpg) do composite -dissolve 75% -gravity SouthEast -quality 70 watermark.png %%F %%F
this should apply the watermark to all the files in a directory. now, resizing the watermark based on the image size is another story :)

Why are you guys not using photoshop. Batch is Super easy..

once you have a batch file imagemagick is way faster
« Last Edit: Sat, 22 September 2012, 04:05:43 by Matt3o »

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #19 on: Sat, 22 September 2012, 09:31:00 »
it seems "composite" can't act on folders, but only on single files. So you indeed need a batch file

If you are on windows this should work

Code: [Select]
for %%F in (*.jpg) do composite -dissolve 75% -gravity SouthEast -quality 70 watermark.png %%F %%F
this should apply the watermark to all the files in a directory. now, resizing the watermark based on the image size is another story :)
it should but for me it isnt sadly

now, resizing the watermark based on the image size is another story :)

do you think is possibly to that because that would be really handy nbecause all my pics are different res some from camera some from screenshot and some created in photoshop
« Last Edit: Sat, 22 September 2012, 09:37:22 by TheProfosist »

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #20 on: Sat, 22 September 2012, 09:40:28 »
I can tell it is looping but i think its giving errors every loop

this is what is says when i pause the cmd window:

Code: [Select]
By default, the image format of `file' is determined by its magic
number.  To specify a particular image format, precede the filename
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps).  Specify 'file' as
'-' for standard input or output.
« Last Edit: Sat, 22 September 2012, 09:42:38 by TheProfosist »

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #21 on: Sat, 22 September 2012, 09:51:25 »
can you try directly on command line without the escaped %? (ie: not inside a batch file)

Quote
for %F in (*.jpg) do composite -dissolve 75% -gravity SouthEast -quality 70 watermark.png %F %F

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #22 on: Sat, 22 September 2012, 09:52:14 »
Also it would probably be best to use the resize method on the watermark, so what you would need to do is get the dimensions of the picture your watermarking then find what size is equal to a certain percentage of that picture then resize the watermark to that size before applying it to the picture.

I also may try and output all my stuff as png's as i have unlimited storage for my photobucket account and now know how to do automatic thumbnails through photobucket to quicken the load on the pages.

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #23 on: Sat, 22 September 2012, 09:58:39 »
can you try directly on command line without the escaped %? (ie: not inside a batch file)

Quote
for %F in (*.jpg) do composite -dissolve 75% -gravity SouthEast -quality 70 watermark.png %F %F

that worked but its not working in a batch file with the escaped % which is kinda a pain to browse to the folder and run in cmd would be much easier to just run a batch file in the folder

only problem with it is that it overwrites the picture would like to change it to add -watermarked or something after the file name and possibly output as png

*note got this to work by setting output file as %F-watermarked.png and ill pass on the pngs their rather large when using using fully size pics from camera but i would like to find a better way to add the -watermarked because the file name did end up to be something like *.jpg-watermarked.png when i tried it.
« Last Edit: Sat, 22 September 2012, 10:04:35 by TheProfosist »

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #24 on: Sat, 22 September 2012, 10:04:14 »
Quote
for %F in (*.jpg) do composite -dissolve 75% -gravity SouthEast -quality 70 watermark.png %F c:\location\%F

should work.

Regarding the batch file I bet it's just a syntax error somewhere (maybe you have to escape the % in -dissolve 75%?). Sorry I'm more of a *nix guy :)

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #25 on: Sat, 22 September 2012, 10:15:15 »
Quote
for %F in (*.jpg) do composite -dissolve 75% -gravity SouthEast -quality 70 watermark.png %F c:\location\%F

should work.

Regarding the batch file I bet it's just a syntax error somewhere (maybe you have to escape the % in -dissolve 75%?). Sorry I'm more of a *nix guy :)

this works so far in bat file:

Code: [Select]
for %%F in (*.jpg) do composite -dissolve 50%% -gravity SouthEast -quality 100 prof.png %%F %%F
the bit you added with c:\location\%%F doesnt gives an error about it not existing but founkd that to be my error because the folder didnt exist

i really can just deal with the over writing ill just copy the files i want watermarked to a new directory the run the bat not too much hastle

i would really like to figure out resizing the water mark depending on the size of the picture it should be possible with all the commands i saw when that error came up i just dont know how to do it reallybut i have a general idea

get resolution of file you want watermarked
find resolution you wat the water mark to be resized to
resize the watermark and save a temp file that can be over written
apply the new resized watermark to the picture



might be able to even figure out some sort of code to figure out it it should apply the white or the black watermark but im thinking that would be a ton of work and it would just be better off to just do both and manually choose
« Last Edit: Sat, 22 September 2012, 10:18:02 by TheProfosist »

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #26 on: Sat, 22 September 2012, 10:21:05 »
get resolution of file you want watermarked
find resolution you wat the water mark to be resized to
resize the watermark and save a temp file that can be over written
apply the new resized watermark to the picture

with all the imagemagick tools I believe that is definitely feasible. For example

Quote
identify -format "%wx%h" image.jpg

gives you the image size

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #27 on: Sat, 22 September 2012, 10:37:09 »


well so far from tinkering all i have is this:

Code: [Select]
for %%F in (*.jpg) do (
composite -dissolve 50%% -gravity SouthEast -quality 100 prof2-1.png %%F %%F-1.jpg
composite -dissolve 50%% -gravity SouthEast -quality 100 prof2-2.png %%F %%F-2.jpg
)

i believe variable in cmd are %1, %2, %3, etc from what i am reading though i may be wrong


with all the imagemagick tools I believe that is definitely feasible. For example

Quote
identify -format "%wx%h" image.jpg

gives you the image size
so how would you then save that to a variable or multiply that right away to a ceratin percentage of it then apply that variable to and image resize of the watermark


also so far the white is doing better on actual pictures but I have a feeling that the black will come into use for pics that I create and possibly screenshots.
« Last Edit: Sat, 22 September 2012, 10:52:37 by TheProfosist »

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #28 on: Sat, 22 September 2012, 10:54:54 »
someone has had to have wanted to do this before but ive found 0 helpful results via google most people resize the image not the watermark.

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #29 on: Sat, 22 September 2012, 10:58:49 »
I'm trying to do it on linux and convert to windows, I'll post it here if I'm successful

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #30 on: Sat, 22 September 2012, 11:02:08 »
I'm trying to do it on linux and convert to windows, I'll post it here if I'm successful
sounds great ive got to head out for now but ill be back later and ill toy around with it some more.

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #31 on: Sat, 22 September 2012, 12:46:13 »
the following should get you started. it basically finds the image size and gives you the proportional watermark width/height. If image is larger than 1920 the watermark is served at 1:1. The script doesn't modify any image, it just gives you the size of the watermark. Let me know if you need help but it's pretty much self explanatory

Quote
@echo off

set imgWidth=
set imgHeight=

set maxWidth=1920
set /a watermarkWidth=200*100000

for /f "tokens=1-2 delims=x" %%a in ('identify -format "%%wx%%h" image.jpg') do (
set imgWidth=%%a
set imgHeight=%%b
)

if %imgWidth% gtr %maxWidth% (set /a watermarkWidth=%watermarkWidth%/100000) else (set /a watermarkWidth = %watermarkWidth%/%maxWidth%*%imgWidth%/100000)

echo Width = %imgWidth%
echo Height = %imgHeight%
echo Watermark Width and Height = %watermarkWidth%

Offline snooze2looze

  • Posts: 5
Re: Looking to watermark my picures
« Reply #32 on: Sat, 22 September 2012, 13:02:11 »

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: Looking to watermark my picures
« Reply #33 on: Sun, 23 September 2012, 00:12:57 »
I'm doing it the manual way but it isn't too hard. My camera shoots at the same res every time so I make a blank layer with my watermark and then I just copy, paste and overwrite the original. It takes less than 20 seconds to do and I don't really have that many pictures to do, re-uploading them is what is taking the longest to do.

here's an example:
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Re: Looking to watermark my picures
« Reply #34 on: Sun, 23 September 2012, 00:18:08 »
I'm doing it the manual way but it isn't too hard. My camera shoots at the same res every time so I make a blank layer with my watermark and then I just copy, paste and overwrite the original. It takes less than 20 seconds to do and I don't really have that many pictures to do, re-uploading them is what is taking the longest to do.

here's an example:
Show Image

that wood on the bottom left looks really nice im going to look into the photoshop method and see what i can do as my problem is i upload more than camera shots

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: Looking to watermark my picures
« Reply #35 on: Sun, 23 September 2012, 00:25:24 »
I've always been a gimp guy because I'm to lazy to get photoshop. I have looked at batch water marking for gimp but it's command line too and I just don't want to mess around with it if it's only going to take 10 seconds to do it myself anyways.


Plus if I have a odd resolution, I have just my water mark that I can copy and paste where ever I want on those so I'm pretty much set ^__^
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #36 on: Sun, 23 September 2012, 00:30:07 »
I dont mind doing 2-3 by hand but anymore than that and as long as ther the same id like to bhave some sort of auto batch.

Also just thought about some comlications with using widthxheight to define the res of the water mark i think realltal or really thin pictures would screw it up.

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #37 on: Thu, 27 September 2012, 00:27:10 »
Ill hopfully get to this on fri or the weekend an exam in college alog with work is eating up all my time.

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #38 on: Thu, 27 September 2012, 12:13:18 »
I dint figure out how to use the photoshop script but i have found that i like my watermark to be about 20% of the picture and the original scrip from matt3to is working great along with the 2 different watermarks he made for me. ill probably batch process the pics i already have uploaded but when I upload new ones it will be in a small enough batch so I can use photoshop and manually place the watermark where I want it.

Offline Matt3o

  • -[起財-
  • ** Robot Emeritus
  • Posts: 3547
  • Location: Italy
Re: Looking to watermark my picures
« Reply #39 on: Thu, 27 September 2012, 12:50:33 »
glad you liked my script and images. when done you may share the finished script, I believe others can make good use of it.

PS: Matt3o! not Matt3to :P

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #40 on: Thu, 27 September 2012, 12:53:42 »
glad you liked my script and images. when done you may share the finished script, I believe others can make good use of it.

PS: Matt3o! not Matt3to :P
Sorries
and here is the script im using and im just sorting the photos that are relatively the same size into folders

Code: [Select]
for %%F in (*.jpg) do (
identify -format "%wx%h" %%F
composite -dissolve 50%% -gravity SouthEast -quality 100 prof-b.png %%F %%F-b.jpg
composite -dissolve 50%% -gravity SouthEast -quality 100 prof-w.png %%F %%F-w.jpg
)

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #41 on: Thu, 27 September 2012, 16:21:06 »
Well i watermarked most of my pics from now on ill do starting out to mine right away thanks for all the help!

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #42 on: Mon, 17 December 2012, 06:32:31 »
hey guys my current watermark both black and white is great (pictured below) but I think that I would like a new one possibly for when i hopefully get my self a DSLR just so that I and possibly others immediately know that its a newer pic and/or shot with my DSLR. I would like to keep with my Cowboy Bebop theme if possible.





Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #43 on: Fri, 21 December 2012, 05:02:36 »
still looking for some creative individual to come up with one :D

Offline TheProfosist

  • Thread Starter
  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Re: Looking to watermark my picures
« Reply #44 on: Sat, 29 December 2012, 06:46:56 »
got a new watermark!