Skip to content

InBrewJ/bardot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bardot

A thing to fix broken jpegs

Naming

https://en.wikipedia.org/wiki/Brigitte_Bardot

Who was an animal rights activist, there are also a fair few jpegs of here out there in the wild. She was also riotously French, of course

Running the App

Locally (Native)

Ensure you have Rust installed.

cd jpeg-repair-server
cargo run

The server will be available at http://localhost:3000. By default, it looks for photos in ../margot-photos. You can override this with the BARDOT_PHOTOS_DIR environment variable.

With Docker

docker build -t bardot .
docker run -p 3000:3000 -v $(pwd)/margot-photos:/photos bardot

Running Tests

cd jpeg-repair-server
cargo test

Deployment

To deploy to a VPS running Docker without a private registry, you can use docker save and docker load.

  1. Build and save the image locally:

    docker build -t bardot .
    docker save bardot | gzip > bardot.tar.gz
  2. Copy the image to your VPS:

    scp bardot.tar.gz user@your-vps-ip:/home/user/
  3. Load and run on the VPS:

    ssh user@your-vps-ip "docker load < /home/user/bardot.tar.gz"
    ssh user@your-vps-ip "docker run -d --name bardot -p 3000:3000 -v /path/to/your/photos:/photos --restart unless-stopped bardot"

About

Fixes JPEG images suffering from typical corruption issues

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages