Skip to content

crowsonkb/synthraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

synthraw

Synthesizes camera raw files (DNG format) using Python. Requires libtiff.

Installation

pip3 install numpy pillow
python3 setup.py install

Usage

From the command line:

synthraw in.png out.dng

From Python:

import numpy as np
from synthraw import DNG

# Create a 32x32 pixel array
data = np.zeros((32, 32), dtype=np.uint16)
# Set one pixel to white
data[1, 1] = 65535
dng = DNG('out.dng')
dng.write_data(data)
dng.close()

About

Synthesizes camera raw files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published