An image-bending tool that transforms images to sound and back.
Ensure you have uv installed.
git clone https://github.com/meownoid/bender.git
cd bender
uv tool install --reinstall .(Optional) Enable autocompletion by generating a completion script and sourcing it in your shell configuration:
_BENDER_COMPLETE=zsh_source bender > ~/.zshrc.d/bender-complete.zshbender convert image.jpgThis creates image-xxxx.wav and image-xxxx.json files using the default algorithm. The .json file contains metadata for reverse conversion.
Specify the output file name:
bender convert image.jpg -o image.wavbender convert image-xxxx-processed.wavThe corresponding .json file with the longest matching prefix is selected automatically.
bender convert --listbender convert -a bmp -p sample_size 1 image.jpgWhen experimenting, it might be useful to automatically convert new sound files back to images.
bender monitor 'image-*.wav'This command converts new sound files with the prefix image- back to images. Use quotes to prevent shell expansion of the pattern.
