Resize and text watermark - comments please
Posted: 2011-07-23T14:41:52-07:00
[using Linux Xubuntu].
I've just started using IM. Previously used Picasa to resize and watermark images... big mistake as IM is that much faster and a natural choice for me as i use llgal for albums. I've found there's quite a bit of reading necessary and i'm unsure of a few things which i'd be grateful for comments/feedback on. I bought the book "Imagemagick Tricks" by Salehi which seems to have some mistakes. I've read most of the website http://www.imagemagick.org/Usage/ but i'm still unsure on certain things.
For pics i use the date for a directory [original size 1600x1200] and then copy images to a directory below for resizing and watermarking. The linux "open terminal here" on a directory is just ideal for IM. I want to do resize and watermark on one commandline and make an alias for the bashrc. Mogrify is fine but i'm not sure of the following.
a] resize
mogrify -resize 50% *.jpg
The command as above worked fine. But the book said that one can do -resize 800x [for an 800 x 600 reduction] or -resize 800x600] didn't work?
b] watermarking
mogrify -pointsize 20 -draw "gravity southeast fill black text 0,12 'jessejazza' fill white text 1,11 'jessejazza'" *.jpg
mogrify -pointsize 20 -gravity southeast -draw "fill black text 0,12 'jessejazza' fill white text 1,11 'jessejazza'" *.jpg
i] fonts. I should be able to specify a font but i've got confused with what i've read. Linux is different to windows... ok i've sized a font but it wasn't Arial or any chosen.
ii] i understood the positioning but one can also use annotate. Ideally i'd like to position the watermark in the same place as Picasa put it. -gravity southeast puts it too close to the right side of the pic. I've tried to copy what picasa did as default. e.g.
http://jessejazza.110mb.com/photos/dogs ... index.html
iii] the options are normally separated by a '-' in llgal and so it appears the same principle is applied to IM. I copied and pasted from examples but i'm unsure why -draw "gravity southeast fill..."etc should work with gravity in "" and the other example -gravity southeast -draw "fill..."etc follows what i would expect.
Perhaps i've got the wrong approach and some kind soul could comment and advise. Thanks
I've just started using IM. Previously used Picasa to resize and watermark images... big mistake as IM is that much faster and a natural choice for me as i use llgal for albums. I've found there's quite a bit of reading necessary and i'm unsure of a few things which i'd be grateful for comments/feedback on. I bought the book "Imagemagick Tricks" by Salehi which seems to have some mistakes. I've read most of the website http://www.imagemagick.org/Usage/ but i'm still unsure on certain things.
For pics i use the date for a directory [original size 1600x1200] and then copy images to a directory below for resizing and watermarking. The linux "open terminal here" on a directory is just ideal for IM. I want to do resize and watermark on one commandline and make an alias for the bashrc. Mogrify is fine but i'm not sure of the following.
a] resize
mogrify -resize 50% *.jpg
The command as above worked fine. But the book said that one can do -resize 800x [for an 800 x 600 reduction] or -resize 800x600] didn't work?
b] watermarking
mogrify -pointsize 20 -draw "gravity southeast fill black text 0,12 'jessejazza' fill white text 1,11 'jessejazza'" *.jpg
mogrify -pointsize 20 -gravity southeast -draw "fill black text 0,12 'jessejazza' fill white text 1,11 'jessejazza'" *.jpg
i] fonts. I should be able to specify a font but i've got confused with what i've read. Linux is different to windows... ok i've sized a font but it wasn't Arial or any chosen.
ii] i understood the positioning but one can also use annotate. Ideally i'd like to position the watermark in the same place as Picasa put it. -gravity southeast puts it too close to the right side of the pic. I've tried to copy what picasa did as default. e.g.
http://jessejazza.110mb.com/photos/dogs ... index.html
iii] the options are normally separated by a '-' in llgal and so it appears the same principle is applied to IM. I copied and pasted from examples but i'm unsure why -draw "gravity southeast fill..."etc should work with gravity in "" and the other example -gravity southeast -draw "fill..."etc follows what i would expect.
Perhaps i've got the wrong approach and some kind soul could comment and advise. Thanks