Piping from dcraw to ImageMagick?
Posted: 2019-08-12T10:08:04-07:00
I am using a Windows appliction that calculates luminance from RAW images taken by a calibrated camera. This application allows me to define two command lines that convert the original photo into an 8-bit-TIFF for display on the monitor and a 16-bit-TIFF for evaluation of the luminance. The default command lines that come with the application solely use dcraw for this job, i.e. allow no scaling or lens correction.
So far, I am using dcraw --> ImageMagick with an intermediate file, i.e. something along the lines of:
for the luminance and
for the display.
This code is placed in two Windows batch files which then replace the usual dcraw-only conversion command lines -- and work just fine.
My question: Could I somehow pipe the output of dcraw into ImageMagick in order to do everything in a single command that I could provide instead of using batch files with an intermediate file?
As you can take from the above code, a solution based on the Delegates file is not suitable, as I have to adapt the dcraw options as well.
Wolfgang Hugemann
So far, I am using dcraw --> ImageMagick with an intermediate file, i.e. something along the lines of:
Code: Select all
C:\Programme\ImageMagick7\dcraw.exe -q 3 -o 0 -4 -r 1 1 1 1 -S 65535 -T -O "%~dp1temp16.TIF" %1
magick "%~dp1temp16.TIF" -scale 25%% -distort barrel "0.0099 -0.0678 0.0014 1.0511" "%~dpn1.tiff"
Code: Select all
C:\Programme\ImageMagick7\dcraw.exe -q 0 -T -O "%~dp1temp.TIF" %1
magick "%~dp1temp.TIF" -scale 25%% -distort barrel "0.0099 -0.0678 0.0014 1.0511" "%~dpn1.tiff"
This code is placed in two Windows batch files which then replace the usual dcraw-only conversion command lines -- and work just fine.
My question: Could I somehow pipe the output of dcraw into ImageMagick in order to do everything in a single command that I could provide instead of using batch files with an intermediate file?
As you can take from the above code, a solution based on the Delegates file is not suitable, as I have to adapt the dcraw options as well.
Wolfgang Hugemann