Thanks!
First command line worked!
Second alternative generated this (running CMD as admin, current directory same as the one holding the images, convert.exe copied to same folder)
*TEST 1:
D:\STAMP_IN>for %F in (IMG_*.JPG) do %IM%convert %F -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/%~nF_copy.jpg
D:\STAMP_IN>%IM%convert IMG_0188.jpg -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/IMG_0188_copy.jpg
'%IM%convert'
is not recognized as an internal or external command,
operable program or batch file.
CHANGES:
( Changed the %% to % as Im running from command line for testing + changed some text formatting [40 font and red] + convert.exe copied to current working directory - dont wanna mess with looong paths
)
*TEST 2
( Changed %IM%convert --> convert )
D:\STAMP_IN>for %F in (IMG_*.JPG) do convert %F -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/%~nF_copy.jpg
D:\STAMP_IN>convert IMG_0188.jpg -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/IMG_0188_copy.jpg
convert: unable to open image 'outdir/IMG_0188_copy.jpg': No such file or directory @ error/blob.c/OpenBlob/2691.
D:\STAMP_IN>convert IMG_0197.jpg -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/IMG_0197_copy.jpg
convert: unable to open image 'outdir/IMG_0197_copy.jpg': No such file or directory @ error/blob.c/OpenBlob/2691.
D:\STAMP_IN>convert IMG_0198.jpg -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/IMG_0198_copy.jpg
convert: unable to open image 'outdir/IMG_0198_copy.jpg': No such file or directory @ error/blob.c/OpenBlob/2691.
D:\STAMP_IN>convert IMG_0322.jpg -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/IMG_0322_copy.jpg
convert: unable to open image 'outdir/IMG_0322_copy.jpg': No such file or directory @ error/blob.c/OpenBlob/2691.
D:\STAMP_IN>convert IMG_0323.jpg -gravity SouthWest -pointsize 40 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/IMG_0323_copy.jpg
convert: unable to open image 'outdir/IMG_0323_copy.jpg': No such file or directory @ error/blob.c/OpenBlob/2691.
TEST 3:
( added "outdir" [D:\STAMP_IN\outdir\ -- current directory D:\STAMP_IN)
D:\STAMP_IN>for %F in (IMG_*.JPG) do convert %F -gravity SouthWest -pointsize 300 -annotate +5+5 %t -fill Red -annotate +4+4 %t outdir/%~nF_copy.jpg
SUCCESS!
(pointsize 300 because my test images were high res DSRL photos)
Thanks! Great! This is perfect for me!
Now I can just export 900 px images from Lightroom to special project folder - then run the .cmd batch file in same folder and a cup of coffee later I have them all watermarked with the unique image number stamped in. (And after that I export all images to my http server and send the client a link - and client sends me a list of numbers of the photos they want)
THANKS ALOT!
snibgo wrote: ↑2017-02-16T07:36:24-07:00
First, work out a command that gives a result you like. For example, Windows BAT syntax:
Code: Select all
convert IMG_0001.JPG -gravity SouthWest -pointsize 20 -annotate +5+5 %%t -fill White -annotate +4+4 %%t x.png
This gives white text with slight black shadow, at bottom-left. Adjust "-pointsize" as you want.
When that does what you want, put it inside a "for" loop, like this:
Code: Select all
for %%F in (IMG_*.JPG) do %IM%convert %%F -gravity SouthWest -pointsize 20 -annotate +5+5 %%t -fill White -annotate +4+4 %%t outdir/%~nF_copy.jpg