c9b05ca96b | ||
---|---|---|
build-aux | ||
data | ||
po | ||
src | ||
.gitignore | ||
.pre-commit-config.yaml | ||
CHANGELOG | ||
COPYING | ||
Cargo.lock | ||
Cargo.toml | ||
PREVIEW.md | ||
README.md | ||
bitbucket-pipelines.yml | ||
eu.nimmerfort.blackbody-debug.json | ||
eu.nimmerfort.blackbody-flathub.json | ||
eu.nimmerfort.blackbody.json | ||
meson.build | ||
rustfmt.toml |
README.md
Blackbody
An image viewer specialized in rendering thermograms. For an animated example, visit here (loads a 7.5MB image).
Features
- Opens many FLIR thermograms, especially recent ones
- Licensed under the EUPL, it is free software, both in price and in user rights
- Works on Linux and Windows
- Renders to several different color palettes (grayscale, turbo, inferno, and more)
- Dynamically set minimum and maximum values for rendering
- Zoom in and out
- Written in Rust and therefore fast
Get it
Blackbody is available on Flathub. It can be installed using your software center, the linked page or the following commands:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub eu.nimmerfort.blackbody
flatpak run eu.nimmerfort.blackbody
The downloads page
lists download options for Linux and Windows. The Linux version is available as
a flatpak. After installing, Blackbody then appears in your overview. The
Windows is provided as zip. You will have to unzip it and place the containing
directory where you want to install it manually. Run the application by double
clicking blackbody.exe
.
Compile for Linux
Either use GNOME Builder (easier) or do it manually. Using Builder it is a
matter of pressing the compile&run button. Doing it manually involves
cargo build --release
, copying the compiled gresource to the same directory as
the binary, and then cargo run --release
.
Compile for Windows
Compiling for Windows is more involved, but does work.
- Install the necessary mingw packages
- Run the build command with cross-compilation flags set. On Fedora:
PKG_CONFIG_ALLOW_CROSS=1 MINGW_PREFIX=/usr/x86_64-w64-mingw32/sys-root/mingw PKG_CONFIG_PATH=$MINGW_PREFIX/lib/pkgconfig cargo build --target=x86_64-pc-windows-gnu --release
- Copy DLLs, icons, glib schemas and the gresource to the same directory with the binary.
mkdir blackbody-windows
cp target/x86_64-pc-windows-gnu/release/*.exe blackbody-windows/
cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll blackbody-windows/
cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/gdbus.exe blackbody-windows/
mkdir -p blackbody-windows/share/glib-2.0/schemas
cp /usr/x86_64-w64-mingw32/sys-root/mingw/share/glib-2.0/schemas/gschemas.compiled blackbody-windows/share/glib-2.0/schemas/gschemas.compiled
cp -r /usr/x86_64-w64-mingw32/sys-root/mingw/share/icons blackbody-windows/share/icons
- Compile the gresource bundle and copy it to
blackbody-windows
- Run with Wine or zip up the release dir and ru non Windows! When using wine
XDG_DATA_DIRS
is correctly set however:XDG_DATA_DIRS=blackbody-windows/share wine blackbody.exe
. In Windows it doesn't seem to matter.
Reference: Cross-compiling Rust Linux -> Windows