Commit Graph

9 Commits

Author SHA1 Message Date
Martijn Braam bae5f5410a postprocess: fixed filename issue if stack_frames exists 2020-10-06 18:27:16 +02:00
Arnaud Ferraris 7f8b6520c6 postprocess: allow using dcraw_emu from Debian
As `dcraw_emu` is an example program, Debian doesn't install it to
`/usr/bin`, but to `/usr/lib/libraw` instead, meaning it can't be found
the usual way.

This patch checks for `/usr/lib/libraw/dcraw_emu` if `command` can't
find it. Additionnally, cascaded if's are replaced with if..elif
statements, so we stop searching as soon as a matching program
(preferably `dcraw_emu`) is found.
2020-10-06 18:19:09 +02:00
Arnaud Ferraris 1872efd3d9 postprocess: use the proper file extension when using dcraw
Instead of simply appending ".tiff" to the existing filename (like
`dcraw_emu` does), `dcraw` fully replaces the file extension, leading
`convert` to subsequently fail as it can't find the `.dng.tiff` file.
2020-10-06 18:19:09 +02:00
Arnaud Ferraris 019771402c postprocess: use POSIX-compliant redirections
Redirecting streams using `&>` is not POSIX-compliant. This causes some
shells (such as `dash`) to evaluate `if` conditions the wrong way.

Sticking to standard `>` redirection fixes this issue.
2020-10-06 18:19:09 +02:00
Martijn Braam bbec2094fb Use stack_frames from hdr-plus if installed 2020-10-05 17:46:30 +02:00
Martijn Braam d55dc1f71c Workaround for dcraw missing denoise options 2020-10-03 23:06:19 +02:00
Martijn Braam 2eb486bf1d Added sharpening in post processing 2020-10-02 22:20:03 +02:00
Martijn Braam b7d43be635 Fixed buffer overflow and postprocessing metadata 2020-10-02 21:08:09 +02:00
Martijn Braam 8863133fe2 Implement external post processing 2020-10-01 17:25:24 +02:00