This terrible piece of Ruby code is a script that to resize images.
For example:
- I use it to copy all my "memory" photos in high resolution to a Foto Frame (low res) (tablet running foto slideshow)
- I use it when I want to web-optimize bunch of images for static page
Simplest usage is just clone the repo and run docker-compose run shrink
https://hub.docker.com/r/equivalent/shrink
It expects you will add your images to /tmp/shrink
and they will get procesesed to /tmp/shrink_processed
.
If you want channge dir you need to run it as Ruby script.
If you want to run it as a Ruby script in your computer:
sudo apt install imagemagick libmagickcore-dev libmagickwand-dev libmagic-dev jpegoptim optipng
- git clone
- bundle install
- ruby run.rb
No tests as I've build this in 30 min and I'm not planing to make this "popular" project and for my every day use it just works withot tests.