How to Install Thumbor on EndeavourOS Latest

Thumbor is an open-source image processing system that allows you to crop, resize and filter images on the fly. In this tutorial, we will show you how to install Thumbor on EndeavourOS.

Prerequisites

Before you begin, make sure that you have the following:

Install Required Dependencies

First, update the system and install the necessary dependencies:

sudo pacman -Syu
sudo pacman -S python python-pip python-virtualenv libjpeg-turbo git

Create a Virtual Environment

Thumbor requires a Python virtual environment to run. Execute the following commands to create a virtual environment for Thumbor:

cd ~
virtualenv thumbor-env
source thumbor-env/bin/activate

Install Thumbor

To install Thumbor, run the following command:

pip install Thumbor

Configure Thumbor

Create a configuration file for Thumbor:

cd ~
cp thumbor-env/lib/python3.8/site-packages/thumbor/thumbor.conf.dist thumbor.conf

Open the thumbor.conf file in a text editor:

nano thumbor.conf

In the file, modify the FILE_STORAGE_ROOT_PATH parameter to a directory where you want Thumbor to store its cache:

FILE_STORAGE_ROOT_PATH = '/tmp/thumbor/storage'

Save and close the file.

Start Thumbor

To start Thumbor, run the following command:

thumbor

Thumbor should now be running. You can test it by opening the following URL in your browser:

http://localhost:8888/unsafe/300x200/http://www.example.com/image.jpg

This URL should return a 300x200 resized version of the example image.

Conclusion

In this tutorial, you learned how to install Thumbor on EndeavourOS. You can now use Thumbor to resize and process images on your EndeavourOS system.

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!