From c28bd6d682aa6bab57443d926f13b892c7d055c9 Mon Sep 17 00:00:00 2001 From: "M. Emre Aydin" Date: Thu, 11 Sep 2014 13:26:17 +0300 Subject: [PATCH] dcraw mode changes Updated the modes dcraw uses. This fixes the bug issued by lgsteele which fiddles with the output image brightness. --- cr2fits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr2fits.py b/cr2fits.py index 8690a1b..5465d49 100755 --- a/cr2fits.py +++ b/cr2fits.py @@ -277,7 +277,7 @@ def __str__(self): print("Reading file %s...") % cr2FileName try : #Converting the CR2 to PPM - p = subprocess.Popen(["dcraw","-6",cr2FileName]).communicate()[0] + p = subprocess.Popen(["dcraw","-6","-j","-W",cr2FileName]).communicate()[0] #Getting the EXIF of CR2 with dcraw p = subprocess.Popen(["dcraw","-i","-v",cr2FileName],stdout=subprocess.PIPE)