Show and keep thumbnails from big HDR and EXR Images in Nemo

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
F3Spirit
Level 1
Level 1
Posts: 10
Joined: Fri Jan 08, 2016 5:05 am

Show and keep thumbnails from big HDR and EXR Images in Nemo

Post by F3Spirit » Tue Jul 17, 2018 6:27 am

Hi,
I have two related Questions.

1) How can I have thumbnails from big HDR and EXR Images ( 22.000 x 10.000p) in Nemo?

Right now I don't see thumbnails from HDR and EXR images at all, but a second problem that will follow is:
2) How can i automatically crawl trough my HDR archive and create all the thumbnails, and how can I keep them stored forever?

I don't care if all the thumbs take up some GB on my Disk, if I can get them in Nemo
I work as a 3D Artist, and need to be able to see all the HDR Images instantly to be able to work creatively .



I use Mint 19 - Cinnamon

vincurekf
Level 1
Level 1
Posts: 1
Joined: Thu Oct 04, 2018 5:06 am

Re: Show and keep thumbnails from big HDR and EXR Images in Nemo

Post by vincurekf » Thu Oct 04, 2018 5:19 am

Hey,

I have been dealing with similar problem and the least complicated solution was to convert HDR images to JPG and store them alongside with the HDR images.
You need to have ImageMagic installed, all your hdr/exr files in one folder and then you can use this script to convert .hdr or .exr images to jpg.
The script will delete all JPG files in that folder in order to remove duplicates and to keep things clean.

Code: Select all

#!/bin/bash
HDRIPATH=$1

convert_image () {
	# $1 = passed file name
	path="$(dirname "$1")"
	file="$(basename "$1")"
	noext="${file%.*}"
	jpgpath="${path}/${noext}_JPG.jpg"
	#
	echo "convert ${f} > ${jpgpath}"
	convert "${f}" "${jpgpath}"
}

for f in "${HDRIPATH}/"*.jpg
do
	if [ -f "$f" ]; then
		rm "${f}"
	fi
done

for f in "${HDRIPATH}/"*.hdr
do
	if [ -f "$f" ]; then
		convert_image "${f}"
	fi
done

for f in "${HDRIPATH}/"*.exr
do
	if [ -f "$f" ]; then
		convert_image "${f}"
	fi
done
Usage:

Code: Select all

~$ ./convert.sh '/Your/Path/To/HDRI_folder'
I hope this helps you. :)
EDIT: script typo

Post Reply

Return to “Cinnamon”