Skip to content

Commit 75df04e

Browse files
committed
Moving some exif to try
1 parent ec9626c commit 75df04e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

RawRefinery/application/dng_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,18 @@ def to_dng(uint_img, rh, filepath, ccm1, save_cfa=True, convert_to_cfa=True, use
129129

130130
t.set(Tag.TileWidth, width)
131131
t.set(Tag.TileLength, height)
132-
t.set(Tag.Orientation, rh.full_metadata['Image Orientation'].values[0])
133132

134133
t.set(Tag.ColorMatrix1, ccm1)
135134
t.set(Tag.CalibrationIlluminant1, CalibrationIlluminant.D65)
136135
wb = get_as_shot_neutral(rh)
137136
t.set(Tag.AsShotNeutral, wb)
138137
t.set(Tag.BaselineExposure, [[0,100]])
139-
t.set(Tag.Make, rh.full_metadata['Image Make'].values)
140-
t.set(Tag.Model, rh.full_metadata['Image Model'].values)
138+
141139

142140
try:
141+
t.set(Tag.Make, rh.full_metadata['Image Make'].values)
142+
t.set(Tag.Model, rh.full_metadata['Image Model'].values)
143+
t.set(Tag.Orientation, rh.full_metadata['Image Orientation'].values[0])
143144
exposures = get_ratios('EXIF ExposureTime', rh)
144145
fnumber = get_ratios('EXIF FNumber', rh)
145146
ExposureBiasValue = get_ratios('EXIF ExposureBiasValue', rh)

0 commit comments

Comments
 (0)