Skip to content

Commit e75d350

Browse files
authored
Add files via upload
1 parent 955d76b commit e75d350

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

raw2tiff.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# 趣味のPython学習 Project 02-12
22
# Python RAW 2 TIFF CONVERTER
3-
# ばーじょん 0.1.0
4-
5-
ver = "0.1.0"
3+
# ばーじょん 0.1.1
64

5+
ver = "0.1.1"
76

87
# NEED THIS ! get 'pillow' with pip command !
98
from PIL import Image
@@ -45,6 +44,7 @@
4544
print("PATTERN:",clr)
4645
print(pat)
4746

47+
tif = raw.postprocess(demosaic_algorithm=RPY.DemosaicAlgorithm.LINEAR,output_bps=16)
4848
rgb = raw.postprocess(demosaic_algorithm=RPY.DemosaicAlgorithm.LINEAR,four_color_rgb=True,output_color=RPY.ColorSpace.raw,output_bps=16)
4949

5050
print("*** READ OK ***")
@@ -59,7 +59,7 @@
5959

6060
fno = fnm + ".tif"
6161
print(f"*** SAVE : {fno} ( 48bit color ) ***")
62-
imageio.imsave(fno,rgb)
62+
imageio.imsave(fno,tif)
6363

6464
if type(pat) != numpy.ndarray : continue
6565

0 commit comments

Comments
 (0)