Skip to content

Online BMP image file editor using WASM and the bmp-rust library

License

Notifications You must be signed in to change notification settings

stjet/BMP-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BMP Editor

BMP Editor is an online .BMP image file editor that allows creation and editing of .BMP image files.

This was made using Yew, a super cool framework that compiles into Web Assembly so it can be run on the web. All the BMP reading and manipulation is done using the bmp-rust crate, which I also wrote.

Features

  • Create a new .BMP file, or a load an existing one.
  • See the file drawn onto a canvas.
  • Click canvas to see coordinate and color of the pixel, and change the color if you want.
  • Use the paintbucket or click to change color tool.
  • Draw lines, ellipses, and rectangles.
  • Useful filters: gaussian blur, greyscaling, inverting, and more.
  • Useful keyboard shortcuts for all tools, and even use the [ and ] to cycle through the tools.
  • Do ctrl+z to undo actions.
  • Works offline!
  • When finished, name and download the .BMP file.

Running Locally

First install Rust, and Trunk (trunk downloads wasm-bindgen and stuff like that for you).

trunk serve

Now visit the site at http://localhost:8080/. You can change which port it runs on by editing the Trunk.toml file. Even once you stop the Trunk server, the site should still be visitable and usable since it registers a service worker that allows it to work offline.

About

Online BMP image file editor using WASM and the bmp-rust library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published