MCPcopy Index your code
hub / github.com/atomofiron/img2fbm

github.com/atomofiron/img2fbm @v0.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.2 ↗ · + Follow
98 symbols 176 edges 22 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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 <type>
          Scale type

          [default: fit]

          Possible values:
          - fill: Scale to fill animation bounds
          - fit:  Scale to fit in animation bounds

  -a, --alignment <side>
          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 <multiplier>
          Preview scale ratio

          [default: 3]

  -i, --inverse
          Inverse output pixels

  -r, --replace-manifest
          Replace dolphin/manifest.txt file with a new one

  -b, --background <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 <percentage[:percentage]>
          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 <speed>
          Animation speed ratio

          [default: 1]

  -c, --cut <count[:count]>
          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

yuno-eyes yuno-eyes_preview

yuno-whisper yuno-whisper_preview

yuno-shoot yuno-shoot_preview

yuno-shadow yuno-shadow_preview

yuno-run yuno-run_preview

yuno-mysterious yuno-mysterious_preview

yuno-knife yuno-knife_preview

yuno-katana yuno-katana_preview

yuno-heh yuno-heh_preview

yuno-final yuno-final_preview

yuno-fight yuno-fight_preview

yuno-crying yuno-crying_preview

yuno-confused yuno-confused_preview

yuno-axe yuno-axe_preview

yuno-afraid yuno-afraid_preview

yuno-shooting yuno-shooting_preview

Extension points exported contracts — how you extend this code

UnitUtil (Interface)
(no doc) [1 implementers]
src/ext/unit_ext.rs
Resizing (Interface)
(no doc) [1 implementers]
src/ext/image_ext.rs
StringUtil (Interface)
(no doc) [1 implementers]
src/ext/string_ext.rs
PathExt (Interface)
(no doc) [1 implementers]
src/ext/path_ext.rs
Sum (Interface)
(no doc) [1 implementers]
src/ext/iter_ext.rs

Core symbols most depended-on inside this repo

clone
called by 11
src/core/params/threshold.rs
abs_dif
called by 9
src/unused.rs
set
called by 5
src/core/bitmap.rs
process
called by 5
src/core/img2bm.rs
is_empty
called by 5
src/core/params/threshold.rs
to_string
called by 5
src/ext/path_ext.rs
get
called by 4
src/core/bitmap.rs
for_each_luminance
called by 3
src/core/img2bm.rs

Shape

Method 50
Function 31
Class 8
Interface 5
Enum 4

Languages

Rust100%

Modules by API surface

src/main.rs10 symbols
src/unused.rs8 symbols
src/core/img2bm.rs8 symbols
src/core/bitmap.rs8 symbols
src/ext/path_ext.rs7 symbols
src/core/params/params.rs7 symbols
src/ext/string_ext.rs6 symbols
src/core/params/threshold.rs6 symbols
src/core/params/scale_type.rs5 symbols
src/core/params/background.rs5 symbols
src/core/params/alignment.rs5 symbols
src/ext/iter_ext.rs4 symbols

For agents

$ claude mcp add img2fbm \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact