- Rust 100%
imasimgbot-rs #
This is a rewrite of imasimgbot in Rust. Just like imasimgbot, it can randomly post media to Bluesky, and can also post to Mastodon.
imasimgbot-rs is designed as a drop-in replacement for the Bash-based imasimgbot and aims to be much faster.
System requirements #
imasimgbot-rs needs three external dependencies available at runtime, all of which are related to the media subsystem:
-
ExifTool (for media processing)
-
ImageMagick (for image processing)
-
FFmpeg (for converting GIFs to MP4)
To install them on Debian-based distributions, run sudo apt install libimage-exiftool-perl imagemagick ffmpeg.
Building #
imasimgbot-rs has been tested to compile with Rust 1.92 or newer.
-
First, install the Rust toolchain.
-
Build tools are required for some dependencies. On Debian-based systems,
sudo apt install build-essentialwill install everything needed. -
Next, clone this repository:
git clone https://tangled.org/did:plc:s2cyuhd7je7eegffpnurnpud/imasimgbot-rs -
To build, change to the created imasimgbot-rs directory, and then run
cargo build --release
If the target system can't run imasimgbot-rs, it might be able to run imasimgbot instead.
Features #
If you want to build only imasimgbot or imgverify, run cargo build --release --no-default-features --features <program> where program is either imasimgbot or imgverify.
Usage #
imasimgbot-rs is fully compatible with imasimgbot's data formats, so you can follow its documentation with imasimgbot-rs.
Compatibility #
Currently imasimgbot-rs supports everything imasimgbot does, with the notable exception of systemd service management.
imasimgbot-rs is now considered the canonical implementation, though there may be some remaining unintentional deviations in behavior from the original that need to be addressed.