Excited to share this small project I've been working on:
(raw left, jpeg right )
Requires: Python 2.7 & Numpy
PyDNG lets you convert your picamera RAW containing .jpgs into Adobe DNG RAW files
for use in a wide variety of image editing applications.
( Photoshop, Lightroom, RawTherapee, etc.. )
Bayer data gives you the most flexibility to really tune your image for the best results.
Paired with Lossless compression when output from Adobe DNG Converter
or 3rd Party application like SlimRAW & enjoy an ~2:1 compression at no cost! ( 4-6MB )
-10/16-bit encoding options
-Flat field correction ( lens shading )
-Hot pixel correction
-Dark frame subtraction
Some future considerations:
-Copy EXIF Data from .jpg to .dng
-Fix magenta tinted highlights
-Improve 10bit/8bit encoding in DNG_10.py
-Apply calibrated color matrix values
-Automated calibration script to let users generate dark/shade/pxl from input images
While the output is a mostly functional dng, for best compatbillity users should convert their DNG's through AdobeDNGConverter to fix any problems. ( and get some free lossless compression as a bonus )
Hopefully this is of some use to somebody out there.