Thumbor is an open-source tool used for resizing, cropping, and filtering images. It can be used in many web applications to manipulate images on the fly. Here's a step-by-step guide on how to install Thumbor on Void Linux.
Before proceeding with the installation, ensure that you have the following:
sudo xbps-install -Syu
sudo xbps-install -S libjpeg-turbo-devel libwebp-devel libpng-devel
pip
.sudo xbps-install -S python3-pip
sudo pip3 install thumbor
thumbor -v
You should see the version number printed on the command line.
Next, you'll configure Thumbor to start using it.
sudo mkdir /etc/thumbor && touch /etc/thumbor/thumbor.conf
[thumbor]
keyfile = /etc/thumbor/thumbor.key
security_key = MY_SECURE_PASSWORD
allow_unsafe_url = True
max_age = 604800
result_storage_store_on_s3 = False
result_storage_file_storage_root_path = /srv/www/thumbnails/thumbor
result_storage_file_storage_root_url = http://127.0.0.1/media/thumbnails/thumbor
## running options
port = 8888
address = 127.0.0.1
with_metrics = True
metrics_port = 3030
## Engines configuration
# ENGINE webp
# ENGINE gifsicle
# ENGINE jpegtran
# ENGINE pngcrush
# ENGINE pngquant
# ENGINE optipng
# IMAGE LOADER filesystem
# DETECTORS face_detector
# RESULT STORAGE file_storage
thumbor -c /etc/thumbor/thumbor.conf
Thumbor should now be running, and you can access it by visiting http://localhost:8888
.
Thumbor is now installed and ready to use on your Void Linux machine. You can now use Thumbor to resize, crop, and filter images as desired.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!