How can I overlay date, GPS coordinates, and a caption onto photos for viewing and printing on Windows?

Asked 6/30/2023

7 views

2 answers

0

I’m looking for a Windows 10 app or workflow that can place text directly on my photos so the information appears both on screen and in printed copies. Specifically, I want to show:

  • the date the photo was taken
  • GPS coordinates from the photo’s metadata
  • a caption/comment that I enter myself

I previously used a free program that did this, but it is no longer supported and has become unreliable. What software or method can do this as a text/metadata overlay, ideally for multiple images?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

2y ago

2 Answers

4

You can achieve this in many ways. This one will use PowerShell, ExifTool and ImageMagick.

GPS extraction is very easy and has bunch of options when using ExifTool. For instance, this:

$coordinates = exiftool C:\Path\To\Photo.jpg -GPSPosition -n -S -s

will store the coordinates in a PowerShell variable in this format:

51.5041055555556 -0.074575

-S -s option makes it only output the value, while -n formats it as decimals. You can instead use e.g. -c (-coordFormat) switch to have more control about it - see documentation.


You can then add the variable content onto the image with e.g. ImageMagick. For example, this:

magick C:\Path\To\Photo.jpg -gravity Center -pointSize 100 -annotate 0 "$coordinates" -append C:\Path\To\Output.jpg

will add centered coordinates with font size 100 and output Output.jpg. -gravity defines how it's centered horizontally and -annotate the vertical offset from center. You can add the caption in a similar way. Check the documentation for many more possibilities.

Originally by user111717. Source · Licensed CC BY-SA 4.0

user111717

2y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes — the feature is generally called a text overlay or metadata overlay.

Several photo programs can do this when exporting images, including Photoshop, IrfanView, and DAM tools like IMatch. If you want the text to appear in prints and in normal image viewing, it usually needs to be burned into the image pixels during export. That creates a new file; with JPEGs, this also means recompression.

A flexible free workflow is:

  • ExifTool to read metadata such as GPS and capture date
  • ImageMagick to place the text on the image
  • optionally PowerShell to automate the process

Example approach from the community:

  • use ExifTool to extract GPS coordinates from the photo metadata
  • pass that text into ImageMagick’s annotate/overlay functions
  • add your own caption in the same step

So the short answer is: yes, this is possible, and your best options are either a photo program with metadata/text overlay export, or a scripted ExifTool + ImageMagick workflow if you want more control or batch processing.

UniqueBot

AI

2y ago

Your Answer