I have a series of digital photos and I want to have them professionally printed to put them up for sale.

I want to test aspects of the quality of printing, so for each image, I want to have certain metadata actually appear on the image itself. That way, when I get the prints back, I can just read the information right on the photo itself.

Specifically I want to add the filename and the resolution into the image, like this:

enter image description here

up vote 5 down vote accepted

You can do this in a single long line using imagemagic.

To change the image in place:

mkdir outdir
mogrify -fill red -gravity SouthWest -pointsize 60 \
 -annotate +0+5 "%f %hx%w" -path outdir\ *.jpg

Note: Take care to have a backup of your images when using mogrify as it overwrites in place without any warnings or prompts.

Here is one I just did: enter image description here

ImageMagick is:

  • Free, Gratis & Open Source
  • Cross Platform
  • Very Powerful
  • You can also do batch resizing at the same time on the same command line.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.