Categories:
-
3d 96 articles
-
animations 16 articles
-
architecture 47 articles
-
blender 98 articles
-
bédé 19 articles
-
techdrawing 24 articles
-
freecad 189 articles
-
gaming 1 articles
-
idsampa 8 articles
-
inthepress 8 articles
-
linux 57 articles
-
music 1 articles
-
nativeifc 30 articles
-
opensource 266 articles
-
orange 4 articles
-
photo 16 articles
-
projects 35 articles
-
receitas 176 articles
-
saopaulo 18 articles
-
sketches 163 articles
-
talks 25 articles
-
techdrawing 24 articles
-
textes 7 articles
-
trilhas 3 articles
-
urbanoids 1 articles
-
video 47 articles
-
webdesign 7 articles
-
works 151 articles
Archives:
-
2007 22 articles
-
2008 32 articles
-
2009 66 articles
-
2010 74 articles
-
2011 74 articles
-
2012 47 articles
-
2013 31 articles
-
2014 38 articles
-
2015 28 articles
-
2016 36 articles
-
2017 41 articles
-
2018 46 articles
-
2019 59 articles
-
2020 18 articles
-
2021 20 articles
-
2022 7 articles
-
2023 25 articles
-
2024 14 articles
HDR thumbnailer
This is a note to myself in case I need it again in the future...
pcmanfm, my favorite file manager, uses the gnome3 thumbnailing system, which makes it very easy to write thumbnailers for new filetypes. Thumbnailers are small programs that take a file of a certain type, and create a small png image of it. So in this example, I'm using imagemagick, the famous image conversion tool that you'll find on almost any linux distro, to make a thumbnailer for HDR images. The thumbnailer is composed of two files:
hdr.thumbnailer (place it in /usr/share/thumbnailers or ~/.local/share/thumbnailers):
[Thumbnailer Entry]TryExec=imagemagick-thumbnailerExec=imagemagick-thumbnailer %i %o %sMimeType=image/hdr;image/x-hdr;
imagemagick-thumbnailer (place it in /usr/bin or any other folder that is in your binary search path):
#!/bin/sh/usr/bin/convert "$1" -thumbnail 64x64 -gravity center -background white -extent 48x48 png:"$2"
One last thing, I suggest you delete /usr/share/mime/packages/kde.xml (installed by kdelibs5-data) because it horribly messes with several file formats (such as HDR) and the mime system doesn't recognize them anymore.