-
Notifications
You must be signed in to change notification settings - Fork 2
/
dngconverter
executable file
·66 lines (59 loc) · 2.42 KB
/
dngconverter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
if [ $# -eq 0 ]; then
cat <<ENDOFHELP
Parameter List
The parameter list consists of options followed by the names of raw files to convert.
Options must precede the names of any raw files that they apply to, and apply to all the
remaining raw files on the command line.
Command Line Options
The Adobe DNG Converter supports the following command line options:
-c Output compressed DNG files (default).
-u Output uncompressed DNG files.
-l Output linear DNG files.
-e Embed original raw file inside DNG files.
-p0 Set JPEG preview size to none.
-p1 Set JPEG preview size to medium size (default).
-p2 Set JPEG preview size to full size.
-fl Embed fast load data.
-lossy Specify lossy compression. Defaults to preserve pixel count.
Specify a long-side pixels or megapixels limit with optional
-side or -count options defined below. Valid for Camera Raw
compatibility 6.6 or later.
-side <pixels> Specify a long-side pixels value from 32 to 65000 pixels.
-count <pixels> Specify a megapixels limit of 1024 (1MP) or greater.
-cr2.4 Set Camera Raw compatibility to 2.4 and later
-cr4.1 Set Camera Raw compatibility to 4.1 and later
-cr4.6 Set Camera Raw compatibility to 4.6 and later
-cr5.4 Set Camera Raw compatibility to 5.4 and later
-cr6.6 Set Camera Raw compatibility to 6.6 and later
-cr7.1 Set Camera Raw compatibility to 7.1 and later (default)
-dng1.1 Set DNG backward version to 1.1
-dng1.3 Set DNG backward version to 1.3
-dng1.4 Set DNG backward version to 1.4 (default)
-x Extract original embedded raw file(s) from source file argument(s).
Overrides options above.
-d <directory> Output converted or extracted files to the specified directory.
Default to the parent directory of the input file. In the case of
multiple input files, it defaults to the parent directory of each file.
-o <filename> Specify the name of the output DNG file.
Default is the name of the input file with the extension
changed to “.dng”.
When converting multiple files with a single command,
output files will use this as a base name and will be numbered
sequentially. Ignored when using -x option.
ENDOFHELP
exit 1
fi
echo dngconverter: $*
if [ "$DNGVER" \> "10_1" ]; then
# since 10.2 changed exe location
DNGEXE="c:/Program Files/Adobe/Adobe DNG Converter/Adobe DNG Converter.exe"
else
DNGEXE="c:/Program Files/Adobe/Adobe DNG Converter.exe"
fi
if [ "$1" = "-i" ]
then
wine "$2" /S
else
wine "$DNGEXE" $*
fi