Convert images into ones suitable for digital photo frames.
- Reduce file size to save SD card spaces: Scale down images to fit just to the screen size of your digital photo frame.
- Ajdust orientation: Rotate images based on EXIF
Orientation. - Overlay shooting datetime: Overlay EXIF
DataTimeOriginal. - Convert smart: Detect new or updated images in src directory recursively, and convert those into dst directory.
'gaaqoo' was named after 'gaku' which means 'frame' in Japanese.
$ pip install gaaqoo$ gaaqoo --help
usage: gaaqoo [-h] [-V] [-f FILE.yml]
Convert images into ones suitable for digital photo frames.
optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
-f FILE.yml, --config FILE.yml
config YAML file (default:
~/.config/gaaqoo/default.yml)
$~/.config/gaaqoo/default.yml (have to create by yourself for now.)
# -*- coding: utf-8 -*-
SRC_DIR: ~/Pictures/gaaqoo-src
DST_DIR: ~/Pictures/gaaqoo-dst
SUFFIX: ['.jpg', '.JPG', '.jpeg', '.JPEG']
# exclude if filepath contains there
EXCLUDE: ['_EXCLUDE_', '_NG_']
DST_IMG_SIZE: [800, 480]
FONT: /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
FONT_SIZE: 30Nagoya Castle :-)
| image | width x height | orientation | |
|---|---|---|---|
| src | ![]() |
4320x3240 | [EXIF] Orientation=6 (Rotate 90 CW) |
| dst | ![]() |
360x480 (fits for 800x480) | Horizontal (normal) |
MIT License
- Pillow (>= 10.0.0)
- PyYAML (>= 6.0)
Without rotation, so suitable for debugging:
display(ImageMagick)
With rotation:
display -auto-orientnautilus(file manager)eog
- ExifTool
exiftool example.jpg
- jhead:
jhead example.jpgjhead -autorot example.jpg
- Exiv2:
exiv2 -pv example.jpg
$ jhead -autorot example.jpg
$ jhead -mkexif example.jpg # keep DateTimeOriginal. drop GPS, Orientation, and others.
$ exiftool example.jpg
