pydngconverter.dngconverter¶
PyDNGConverter interface bridges for Adobe DNG Converter.
Classes
|
Batch DNG Conversion. |
|
DNG Conversion job. |
|
Adobe DNG Converter Parameters. |
-
class
pydngconverter.dngconverter.
DNGBatchJob
(source_directory, jobs=<factory>, dest_directory=None)¶ Bases:
object
Batch DNG Conversion.
-
source_directory
¶ Directory of source images.
- Type
pathlib.Path
-
jobs
¶ Child jobs of this batch job. Automatically populated based on source directory.
- Type
-
dest_directory
¶ Destination directory. Defaults to source directory root.
- Type
Optional[pathlib.Path]
-
dest_directory
: Optional[pathlib.Path] = None¶
-
jobs
: List[pydngconverter.dngconverter.DNGJob]¶
-
source_directory
: pathlib.Path¶
-
-
class
pydngconverter.dngconverter.
DNGJob
(source, destination_root=None, _parent=None)¶ Bases:
object
DNG Conversion job.
-
source
¶ Job source image path.
- Type
pathlib.Path
-
destination_root
¶ Job destination directory. Defaults to source path root.
- Type
pathlib.Path
-
_parent
¶ Parent Job. Defaults to None.
-
property
destination
¶ - Return type
Path
-
property
destination_filename
¶ - Return type
str
-
destination_root
: pathlib.Path = None¶
-
source
: pathlib.Path¶
-
property
source_suffix
¶ - Return type
str
-
property
thumbnail_destination
¶ - Return type
Path
-
property
thumbnail_filename
¶ - Return type
str
-
-
class
pydngconverter.dngconverter.
DNGParameters
(compression=<Compression.YES: 'c'>, camera_raw=<CRawCompat.ELEVEN_TWO: 11.2>, dng_version=<DNGVersion.ONE_FOUR: 1.4>, jpeg_preview=<JPEGPreview.MEDIUM: 1>, fast_load=False, lossy=<LossyCompression.NO: ''>, side=0, count=0, linear=False)¶ Bases:
object
Adobe DNG Converter Parameters.
-
compression
¶ Enable DNG compression. Defaults to true.
- Type
-
camera_raw
¶ Camera RAW compatibility version. Defaults to latest.
- Type
-
dng_version
¶ DNG backwards compatible version. Defaults to latest.
- Type
-
jpeg_preview
¶ JPEG preview thumbnail quality/method. Defaults to medium quality.
- Type
-
fast_load
¶ Embed fast load data. Defaults to false.
- Type
bool
-
lossy
¶ Enable lossy compression. Defaults to flags.LossyCompression.NO.
-
side
¶ Long-side pixels (32-65000). Implies lossy compression.
- Type
int
-
count
¶ Megapixels limit of >= 1024 (1MP). Implies lossy compression.
- Type
int
-
linear
¶ Enable linear DNG format. Defaults to false.
- Type
bool
-
camera_raw
: pydngconverter.flags.CRawCompat = 11.2¶
-
compression
: pydngconverter.flags.Compression = 'c'¶
-
count
: Optional[int] = 0¶
-
dng_version
: pydngconverter.flags.DNGVersion = 1.4¶
-
fast_load
: bool = False¶
-
property
fast_load_flag
¶ - Return type
Optional
[str
]
-
property
iter_args
¶ - Return type
Iterator
[str
]
-
jpeg_preview
: pydngconverter.flags.JPEGPreview = 1¶
-
linear
: bool = False¶
-
property
linear_flag
¶ - Return type
Optional
[str
]
-
lossy
: pydngconverter.flags.LossyCompression = ''¶
-
side
: Optional[int] = 0¶
-