Created
April 30, 2015 14:56
-
-
Save ManzDev/75c4f27a20964d7ec6f1 to your computer and use it in GitHub Desktop.
Convert NEF (Nikon RAW) to JPG image (needs Imagemagick)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem DANGER!! Default convert.exe system is a NTFS disk converter. Use where convert.exe and change it for imagemagick convert. | |
set imconvert="C:\Program Files\ImageMagick-6.8.8-Q16\convert.exe" | |
chcp 1252 >nul | |
set argc=0 | |
for %%x in (%*) do set /a argc+=1 | |
if [%argc%] == [0] goto default | |
if [%argc%] == [1] goto width | |
:default | |
for %%d in (*.NEF) do echo Convirtiendo %%~nd.jpg (2100w)... & %imconvert% -resize 2100 %%d %%~nd.jpg | |
goto end | |
:width | |
for %%d in (*.NEF) do echo Convirtiendo %%~nd.jpg (%1w)... & %imconvert% -resize %1 %%d %%~nd.jpg | |
goto end | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment