img2fbm
Image to Flipper bitmap converter
https://github.com/Atomofiron/img2fbm/assets/14147217/59cbb785-d17d-46e0-a8fe-b8a8210959ec
Functionality
img2fbm --help
```
Flipper bitmap files generator
Usage: img2fbm [OPTIONS] [dolphin]
Arguments:
Path to png|jpg|jpeg|gif file
[dolphin]
Path to the 'dolphin' directory, if the gif passed
Options:
-H, --height <1-64>
Sets the height of output frame(s)
[default: 64]
--st
Scale type
[default: fit]
Possible values:
- fill: Scale to fill animation bounds
- fit: Scale to fit in animation bounds
-a, --alignment
Applied alignment if the source picture has aspect ratio different from the target
[default: bottom]
Possible values:
- left: Align source picture to left
- top: Align source picture to top
- right: Align source picture to right
- bottom: Align source picture to bottom
-p, --preview
Generate the previews of result pictures
--op
Only preview, do not generate .bm and other Flipper Animation files
--ps
Preview scale ratio
[default: 3]
-i, --inverse
Inverse output pixels
-r, --replace-manifest
Replace dolphin/manifest.txt file with a new one
-b, --background
Set background pixels visible
[default: invisible]
Possible values:
- invisible: Keep transparent, white, unset, zero
- start: Make visible on the left or top side
- end: Make visible on the right or bottom side
- visible: Make visible, black, set, unit
-t, --threshold
Threshold value or range of pixel brightness as a percentage, such as 20:80, 40:, :60, 50:50 or 50
[default: 20:80]
-s, --speed
Animation speed ratio
[default: 1]
-c, --cut
Drop some frames from the start and from the end. For example 5:, :8 or 2:3, the last one drops 2 frames from start and 3 from the end
[default: 0:0]
```
Download
From Releases
:white_check_mark: MacOS x86_64
:white_check_mark: MacOS ARM
:white_check_mark: Linux x86_64
:zzz: Linux ARM
:white_check_mark: Windows x86_64
Samples