Creating Thumbnails: dcraw and ImageMagick in a Batch File (1)

Usage for RAW files.

Batch File

Written by Matthias Vonken. You have to fit the paths to dcraw.exe and convert.exe.

@echo off

set IMAGE_FILE=%1
set MAX_LENGTH=%2

rem Creating thumbnail
"C:\dcraw\dcraw.exe" -e -c %IMAGE_FILE% | "C:\Program Files\ImageMagick-6.6.9-Q16\convert.exe" - -thumbnail %MAX_LENGTH%x%MAX_LENGTH% -auto-orient jpg:-

Author: Elmar Baumann
Write e-Mail
Status of this document: 2011-04-27