Sign inSign up

peccu/preview-image-folder

By peccu

•Updated about 4 years ago

preview images in folder with auto refresh when the new images added

Image
1

1.4K

peccu/preview-image-folder repository overview

⁠preview-image-folder

Preview images in folder with auto refresh when the new images added.

Main usecase is to check screen captured image.

GitHub repo⁠

⁠install

  • download package from release page
  • extract binary
  • add it to PATH or call it with relative path
  • preview-image-folder --help shows help

⁠local version

Start server by

cargo run -- --host 0.0.0.0 ./images

and open http://localhost:8000⁠ .

Then, you can add images into ./images and the browser should be auto-reloaded and show images in the directory.

You can change directory or image extensions by argument --port and last aragument.

Please see help for detail by cargo run -- --help.

⁠docker version

You can use docker image peccu/preview-image-folder⁠ from Docker Hub.

You need to mount the image folder into /app/images and listening port is 8000.

docker run --name preview-image-folder --rm -d -p 8000:8000 -v $(pwd):/app/images peccu/preview-image-folder:latest

⁠docker-compose version

change local image path in the docker-compose.yml, and the run these command.

docker-compose up -d

Tag summary

Content type

Image

Digest

sha256:08900b8a4…

Size

5.4 MB

Last updated

about 4 years ago

docker pull peccu/preview-image-folder