Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Fix setting the output colorspace
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed May 24, 2015
1 parent 300c4b5 commit 0cb3e7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rawkit/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ def colorspace(self):
:dcraw: ``-o``
:libraw: :class:`rawkit.libraw.libraw_output_params_t.output_color`
"""
return self._colorspace
if self._colorspace is not None:
return self._colorspace
else:
return colorspaces.srgb

@colorspace.setter
def colorspace(self, value):
Expand Down Expand Up @@ -377,3 +380,4 @@ def _map_to_libraw_params(self, params):
params.use_camera_wb = ctypes.c_int(self.white_balance.camera)
params.use_auto_wb = ctypes.c_int(self.white_balance.auto)
params.highlight = ctypes.c_int(self.highlight_mode)
params.output_color = ctypes.c_int(self.colorspace)

0 comments on commit 0cb3e7e

Please sign in to comment.