Code Monkey home page Code Monkey logo

camera2disk's Introduction

camera2disk

The Problem

To motivation to write this script was simple: I was sick of manually creating folders, copying and renaming files anytime I wanted to get photos from my digital camera. This simple bash script takes care of this problem.

The Idea

This script copies image files from your camera to your computer. It automatically creates a folder on your disk from the current date and the first argument supplied to the script, copies the files from your camera and renames them properly.

Installation

Download camera2disk from github. Copy it to a folder that is covered by your system’s $PATH variable. chmod it to be executable, e.g. 755. After this is done, you will need to change the file camera2disk with you favourite text editor. Change the line containing SOURCE_PATH to the path to which your camera’s memory card is mounted. In my case, this is something like /Volumes/digicam/PANA_102. Then, change TARGET_PATH to the folder where you keep your photos. If your camera produces file formats that are not covered in EXTENSIONS, you need to add these formats. Just stick to the format of the existing ones, it’s easy!

Example Usage

$ ./camera2disk snapshots_sunset

...results in a folder in your image directory, named e.g. 120119_snapshots_sunset. This folder contains three subfolders (original, selection, web). The image files are placed in "original", named 120119_snapshots_sunset_<orig_file_name>.<extension>

Versions

Version 1.0

initial release

Version 1.1

dynamic, user serviceable file extension support, see $EXTENSIONS for reference

Version 1.2

until 1.1, this script blindly copied all files on your camera's memory card to the target folder. Now, only images that were created since you ran camera2disk for the last time are taken.

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.