RAW to Jpeg image conversion script for Nautilus Actions Configuration

  1. This script is dependent to UFRaw. Install UFRaw in order to convert.
  2. xterm is used to run the UFRaw simply because to show the progress of the conversion.
  3. Nautilus-actions parameters: %d "%M"




#!/bin/bash

export FILE_PATH=$1
export FILE=$2

#Create directory
if [ ! -d $FILE_PATH/Converted_JPEGs ];
    then mkdir $FILE_PATH/Converted_JPEGs;
fi;

#Convert RAW image file to Jpeg
xterm -e "ufraw-batch \
        --wb=camera \
        --exposure=auto \
        --out-type=jpeg \
        --compression=96 \
        --overwrite \
        --out-path=$FILE_PATH/Converted_JPEGs \
        $FILE"

Comments

Popular posts from this blog