Close #387: update nconvert to v7.20 which fixes the Sony ARW bug; handle Apple HEIC

This commit is contained in:
Paddy Xu
2018-11-07 21:22:26 +02:00
parent ea55fda70a
commit 8e74040bb5
19 changed files with 52 additions and 839 deletions

View File

@@ -61,11 +61,10 @@ namespace QuickLook.Plugin.ImageViewer
{
var temp = Path.GetTempFileName();
File.Delete(temp);
var sony = Path.GetExtension(_path)?.ToLower() == ".arw" ? "-autolevels" : "";
var thumb = thumbnail ? "-embedded_jpeg" : "";
var d = RunInternal(
$"-quiet {thumb} {sony} -raw_camerabalance -raw_autobright -icc -out tiff -o \"{temp}\" \"{_path}\"",
$"-quiet {thumb} -raw_camerabalance -raw_autobright -icc -out tiff -o \"{temp}\" \"{_path}\"",
10000);
var ms = new MemoryStream(File.ReadAllBytes(temp));