How to Install Thumbor on Ubuntu Server Latest
Thumbor is an open-source image processing and thumbnail generator service which allows you to resize, crop, flip, and filter images on-the-fly. In this tutorial, you will learn how to install Thumbor on your Ubuntu server.
Prerequisites
- A server running Ubuntu latest
- SSH access to the server with sudo privileges
- Basic knowledge of Linux commands
Step 1: Install system requirements
Thumbor has some dependencies that need to be installed on the Ubuntu system. Run the following command to install required packages.
sudo apt-get update
sudo apt-get install libjpeg-dev libpng-dev libgif-dev libtiff-dev libjpeg-turbo-dev libwebp-dev liblcms2-dev libopenjp2-7-dev curl python3 python3-dev python3-pip -y
Step 2: Install Thumbor
In order to install Thumbor, use the pip package manager, run the following commands:
sudo pip3 install thumbor
Step 3: Configure and Run Thumbor
To configure and run the thumbor service, run the following commands:
thumbor-config > /etc/thumbor.conf
thumbor -c /etc/thumbor.conf
Step 4: Check Thumbor Status
To check the status of the Thumbor service, run the following command:
systemctl status thumbor
If everything is fine, the output should show that Thumbor is active and running.
Conclusion
You’ve successfully installed and configured Thumbor on your Ubuntu server. You can now start using Thumbor to process the images.