geeqie
geeqie copied to clipboard
Support exr file format
ISSUE TYPE
- Bug Report
- Feature Request
GEEQIE VERSION
OS / DISTRIBUTION
SUMMARY
There is no in-build support for .exr files, however, there is a workaround if Image Magick or similar is installed.
Go to edit/preferences/file filter and include a new entry for .exr. Do not omit the dot.
Go to edit/preferences/advanced and include links to two script files. As an example these may be:
exr-identify.sh;
#!/bin/bash
filename=$(basename -- "$1")
extension="${filename##*.}"
shopt -s nocasematch
if [[ $extension == "exr" ]]
then
exit 0
else
exit 1
fi
exr-decode.sh
#! /bin/bash
tmpfile=$(mktemp --tmpdir=$tempdir geeqie_tmp_XXXXXX.jpg)
convert "$1" $tmpfile
mv $tmpfile "$2"
This is slow, but it works.