Skip to main content

Python Interface for the Adobe's DNG Converter

Project description

PyDNGConverter

Python Interface for the Adobe's DNG Converter.

Utilizing parallel processing, PyDNGConverter can convert RAW images to DNG up to ~60% faster than simply utilizing Adobe's DNG Converter.

Installation

pip install -U pydngconverter

To utilize PyDNGConverter's Exif thumbnail extraction (as opposed to Adobe DNG Converters'), the following dependencies are required:

Then specify JPEGPreview.EXTRACT for DNGConverters jpeg_preview parameter.

Alternatively, you can utilize Adobe DNG Converters' thumbnail extraction via:

  • JPEGPreview.MEDIUM
  • JPEGPreview.FULL

Or, disable thumbnails via:

  • JPEGPreview.NONE

Example

import asyncio
from pydngconverter import DNGConverter, flags

async def main():
    # Create converter instance.
    pydng = DNGConverter('/my/raw/files/',
                        dest='/dngfiles',
                        jpeg_preview=flags.JPEGPreview.EXTRACT,
                        fast_load=True,
                        )
    # Convert all
    return await pydng.convert()

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pydngconverter, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pydngconverter-0.2.0-py2.py3-none-any.whl (11.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pydngconverter-0.2.0.tar.gz (13.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page