Skip to content

Instantly share code, notes, and snippets.

@bedros
bedros / img_utils.python
Created November 21, 2019 04:22 — forked from dangtrinhnt/img_utils.python
Autorotate and autoresize images in mass with Python and PIL
#!/usr/bin/env python
"""
File: autorotate.py
Origial Author: Damien Riquet <d.riquet@gmail.com>
Current Maintainer: Trinh Nguyen <dangtrinhnt[at]gmail[dot]com>
Description: This script provides an auto-rotate feature of pictures
USAGE: autorotate.py [-h] [--recursive] directory [directory ...]
positional arguments:
@bedros
bedros / darktable-workflow.md
Created July 4, 2019 19:42 — forked from eimajtrebor/darktable-workflow.md
My Darktable Workflow

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
#!/usr/bin/python
import filecmp
import sys, os
def print_diff_files(dcmp, diff_list, dname):
for name in dcmp.diff_files: