Skip to content

Delnegend/artefact

Repository files navigation

artefact

What this does

JPEG compression discards image data. Regular decoders then try to "fill in" the missing pieces, and that guessing often creates visible artifacts.

This project, instead of patching missing information with noisy guesses, reconstructs the lost detail in a way that produces smoother, more visually pleasing images.

This project is based on jpeg2png, and:

  • is rewritten in Rust.
  • ⚡ is nearly 3× faster.
  • is WASM-ready, runs directly in the browser.

Demos

Photo by Aleksandar Pasaric

Photo by Toa Heftiba Şinca

Quick start

There are two ways to use artefact:

1. The performance way

Either download the latest binary from the releases page or build from source, then run:

artefact-cli <input.jpg>

This will create a file named input.png in the same directory as the input file. Run artefact-cli --help for more options.

2. The convenience way

Go to artefact.delnegend.com, upload your JPEG image, and hit the "Process" button.

Everything runs directly in your browser, no data is sent anywhere. The downside is that processing is slower than the native binary.

Resources

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.