geekhack
geekhack Community => Off Topic => Topic started by: TheProfosist 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?
-
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?
-
Idk something simple that probably just says Prof but idk you have any ideas?
-
dunno, something cowboy bebop related maybe?
-
dunno, something cowboy bebop related maybe?
lol been thingking that maybe this
(http://img.photobucket.com/albums/v519/TheProfosist/ED3.gif)
or this
(http://img.photobucket.com/albums/v519/TheProfosist/eygum.gif)
they have been in my photobucket account since forever
-
something like this?
-
looks great
-
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
-
Use the force....
-
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
-
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
-
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
-
I'm dumb, I meant folder location not file location for both of those.
-
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
-
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
-
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!
-
Why are you guys not using photoshop. Batch is Super easy..
-
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.
-
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
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
-
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
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
-
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:
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.
-
can you try directly on command line without the escaped %? (ie: not inside a batch file)
for %F in (*.jpg) do composite -dissolve 75% -gravity SouthEast -quality 70 watermark.png %F %F
-
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.
-
can you try directly on command line without the escaped %? (ie: not inside a batch file)
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.
-
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 :)
-
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:
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
-
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
identify -format "%wx%h" image.jpg
gives you the image size
-
well so far from tinkering all i have is this:
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
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.
-
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.
-
I'm trying to do it on linux and convert to windows, I'll post it here if I'm successful
-
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.
-
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
@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%
-
If you have photoshop it's a piece of cake.
http://psnick.deviantart.com/art/Watermark-Photoshop-Action-78686819
-
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:
(http://img1.UploadScreenshot.com/images/main/9/26515444617.jpg) (http://www.UploadScreenshot.com/image/1454217/434336)
-
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:
(http://img1.UploadScreenshot.com/images/main/9/26515444617.jpg) (http://www.UploadScreenshot.com/image/1454217/434336)
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
-
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 ^__^
-
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.
-
Ill hopfully get to this on fri or the weekend an exam in college alog with work is eating up all my time.
-
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.
-
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
-
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
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
)
-
Well i watermarked most of my pics from now on ill do starting out to mine right away thanks for all the help!
-
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.
(http://img.photobucket.com/albums/v519/TheProfosist/GeekHack/GH-sub-notmine/prof-black.png)
(http://img.photobucket.com/albums/v519/TheProfosist/GeekHack/GH-sub-notmine/prof-white.png)
-
still looking for some creative individual to come up with one :D
-
got a new watermark!