Code Monkey home page Code Monkey logo

picsel's Introduction

The picsel project

This currently consists of two Python scripts shotwell2blog.py and digikam2blog.py.

Both scripts copy tagged photos from a Shotwell or DigiKam photo database to a target filesystem. Alternatively they can also simply list their filenames in different ways instead of copying the files.

I use to have all my photos in a single DigiKam photo database. When I want to share a photo, then I tag it with a given name (e.g. "blog"). And after closing DigiKam, I run a make process which copies those pictures to a cache directory and then uses rsync to publish them to an internet server.

Usage examples:

(Replace xxx in examples below by either shotwell or digiḱam.)

List the file names of all photos tagged "foo":

$ xxx2blog.py foo

Copy all photos marked "blog" to a directory ~/myblog/pictures. Maintain subdirectories. Don't touch existing photos:

$ xxx2blog.py -t ~/myblog/pictures blog

Create a zip file with a copy of each photo tagged "Foo" (the -j option is to not include directory names):

$ xxx2blog.py Foo | xargs zip -j foo.zip

Create a zip file with all photos tagged Foo and taken after 2015-01-01, expect those with "AÜ" in their name:

$ xxx2blog.py -a 2015-01-01 Foo | grep -v AÜ | xargs zip Foo2015.zip

TODO

  • Export also videos

picsel's People

Contributors

lsaffre avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

mafiainc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.