Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

NGalerie

NGalerie is a Python project that aim to enable fast management of Reflex Camera pictures.

The picture are store in landscape way even if they shouldn't, there is a miniature file inside that we could remove.

We also want to be able to resize them at a usable size, create external thumbnails and give them a meaningful name such as the date of picture's shots.

NGalerie is a CLI software with useful function to make it do what we want.

WHAT CAN YOU DO ?

This script does three things :

  • Resize all JPG of a directory to a certain size
  • Rotate physically the file using EXIF information
  • Rename images using the DateTime EXIF file information

DEPENDANCIES

You will need PyExiv2 and PIL to run this project

  • PyExiv2 to extract EXIF information
  • PIL to exploit images files

USAGE

Rename files using shot datetime:

ngalerie --rename /media/CAMERA/DCIM/100NIKON/ ~/Images/ACC

Rotate and Resize images:

ngalerie --resize 1280 --rotate /media/CAMERA/DCIM/100NIKON/ ~/Images/ACC

Resize, rotate rename and create thumbnail with a special copyright:

ngalerie --resize 600 --max-dir agrandie \
         --thumb-size 200 --thumb-dir miniature \
         -tr --artist "Remy HUBSCHER" \
          --copyright "Afpy Computer Camp 2011" \
          /media/CAMERA/DCIM/100NIKON/ ~/Images/20110806

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.