Thumbor is a Python-based image processing service which allows you to resize, crop, and filter images on the fly. In this tutorial, we will guide you on how to install Thumbor on Linux Mint Latest.
Before we begin, make sure that you have the following prerequisites:
The first step is to update the system packages to their latest versions. Open the terminal application and run the following command:
sudo apt update && sudo apt upgrade -y
Thumbor requires several dependencies to run. Use the following command to install these packages:
sudo apt install -y python3-pip python3-dev libssl-dev libffi-dev libavcodec-dev libavformat-dev libswscale-dev libjpeg-dev libpng-dev libtiff-dev libopenjp2-7-dev libwebp-dev libxcb-composite0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-xinerama0-dev libxcb1-dev libglib2.0-dev libcairo2-dev libpango1.0-dev
Use the following command to install Thumbor using pip:
sudo pip3 install thumbor
Now, you need to create a configuration file for Thumbor. For this tutorial, we will create a simple configuration file in the /etc/thumbor directory.
Create the directory if it does not already exist:
sudo mkdir -p /etc/thumbor
Next, use a text editor to create a new configuration file:
sudo nano /etc/thumbor/thumbor.conf
Add the following text to the configuration file:
[security]
ALLOW_UNSAFE_URL = True
[server]
port = 8000
ip = 127.0.0.1
This simple configuration file sets up Thumbor to listen on port 8000 and to only accept requests from localhost.
To start the Thumbor service, use the following command:
thumbor -c /etc/thumbor/thumbor.conf
Thumbor is now running on your Linux Mint Latest server. To test it, open a web browser and enter the following address:
http://localhost:8000/unsafe/http://thumbor.org/logo.png
This will show the Thumbor logo which indicates that Thumbor is working.
Thumbor is a powerful image processing service that runs on Linux Mint Latest. In this tutorial, we have shown how to install and configure Thumbor.
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!