geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

Support exr file format

Open caclark opened this issue 2 years ago • 0 comments

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.

caclark avatar Jun 06 '23 18:06 caclark