jpegsearch and jpeglocation

Introduction

jpegsearch and jpeglocation are command line utilities to do with EXIF data contained in JPEG file. They are developed as suppliment for Eye of GNOME.

Both are written in Python3 and depends non standard module exifread. Please install by package system of your OS or by PyPi. The author uses python3-exifread Version: 3.0.0-1 installed by apt on Ubuntu 24.04 LTS.

exifsearch

exifsearch searches JPEG file given "tag" is applied on which. Invocation syntax is

exifsearch [-d top_directory] [ tag ...]

It starts searching from top_directory(default is current directory) and digs downward. It has no protection against looping caused by upward symbolic link or something.

When no tag are given, jpegsearch enumerates tags applied on files under top_directory. When more than one tag are given, they are treated by OR condition.

Examples

$ jpegsearch
cedar  tree  hill  apple  orchard  cafe  sweets

Invoked without any tag, so it enumerates all tags applied on JPEG files under current directory. Let's search files having "tree" or "apple".

$ jpegsearch tree apple
./holiday/IMG_2599.jpg: cedar tree hill
./local/IMG_2596.JPG: apple tree orchard
./office/IMG_2595.JPG: cafe apple sweets

This time, two tags "tree" and "apple" are given, so it searches JPEG files either "tree" or "apple" is applied as tag on which.

jpeglocation

jpeglocation extracts GPS location(latitude and longitude) information from JPEG file and shows. The result may copied and pasted on search box of Google map.

Example

$ jpeglocation holiday/IMG_2565.jpg
holiday/IMG_2565.jpg:  27°59'17.41"N 86°55'33"E

You can copy 27°59'17.41"N 86°55'31.33"E, the result, and paste on Google map.


[software|Top page]
Last update: $Date:: 2025-10-25 16:58:22 +0900#$
Copyright 2025 Koh-ichi Ito, All rights reserved.