Code Monkey home page Code Monkey logo

rawinfo's Introduction

rawinfo

Example image

Scuffed command-line frontend for libraw

Disclaimer

Only tested on Linux, may or may not work on your Windows machine or Mac.

Right now this program is hard-coded to only look for .ARW (Sony) and .CR2|.CR3 (Canon) files, as those are the only ones I have easy access to. Theoretically, the actual libraw library could handle much more, but that would require me to add a bunch of file extensions that I neither know nor have samples to test.

Usage

rawinfo [-s] [-f <files>] [-d <directories>] [options]

All available options:

  • -s, --silent: Do not show per-file information, useful for avoiding unnecessary output when scanning a large number of files

  • -d, --directories: Directories to recursively search for raw files

  • -f, --files: List of raw files to process

  • --showCamera[=true|false]: Show camera name, image ISO and shutter speed

  • --showLens[=true|false]: Show lens name, image focal length and aperture

  • --showSize[=true|false]: Show image size (dimensions) and resolution

  • --showTimestamp[=true|false]: Show image timestamp

  • --showSoftware[=true|false]: Show camera software version

  • --showCameraType[=true|false]: Show camera type

  • --showQuality[=true|false]: Show image quality setting (e.g. raw compression level)

Boolean options show{Camera,Lens,Size,Timestamp,Software,CameraType,Quality} are all true by default.

Build dependencies

  • CMake: Build system for C++

  • libraw: The actual backend library

  • libfmt: Formatting strings + making printing stuff in C++ bearable

  • cxxopts: Command-line argument parsing

Arch Linux

# pacman -S cmake gcc libraw fmt cxxopts

Ubuntu

# apt install cmake g++ libraw-dev libfmt-dev libcxxopts-dev

Building

git clone https://github.com/pascalpuffke/rawinfo
cd rawinfo

# For some reason I couldn't get git submodules working and I can't be bothered to fix it, so you will need to clone the LibRaw and LibRaw-cmake repositories manually.
git clone https://github.com/LibRaw/LibRaw
git clone https://github.com/LibRaw/LibRaw-cmake
mkdir LibRaw-cmake/libraw
cp LibRaw/libraw/libraw_version.h LibRaw-cmake/libraw/

mkdir build
cd build

cmake ..
cmake --build .

Should generating the build files fail (cmake ..) with the message No SOURCES given to target: raw, you will need to set the LIBRAW_PATH variable.

cmake -DLIBRAW_PATH=/absolute/path/to/LibRaw/ ..

I might eventually put all this into a bash script.

rawinfo's People

Contributors

pascalpuffke avatar

Stargazers

 avatar

Watchers

 avatar

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.