Skip to content

atomofiron/img2fbm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

img2fbm

Image to Flipper bitmap converter

demo.mp4

Functionality

img2fbm --help
Flipper bitmap files generator

Usage: img2fbm [OPTIONS] <source> [dolphin]

Arguments:
  <source>
          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
✅ MacOS x86_64
✅ MacOS ARM
✅ Linux x86_64
💤 Linux ARM
✅ 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

About

Image to Flipper bitmap converter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages