Improve rangers CR2 image preview performance

Make rangers CR2 image preview faster by displaying an extracted preview
JPG using exiftool instead of converting it.
This commit is contained in:
2020-09-20 03:55:39 +02:00
parent 06f0b1c40f
commit 6bfea69a24

View File

@@ -138,6 +138,11 @@ handle_image() {
# - "${IMAGE_CACHE_PATH}" < "${FILE_PATH}" \
# && exit 6 || exit 1;;
## Canon RAW
image/x-canon-cr2)
exiftool -b -PreviewImage "${FILE_PATH}" > "${IMAGE_CACHE_PATH}" && exit 6
exit 1;;
## Image
image/*)
local orientation