How to Install Thumbor on OpenSUSE Latest

Thumbor is an open-source image-processing service, which can be used for resizing, cropping or filtering images via HTTP API.

In this tutorial, we will go through the steps of installing Thumbor on OpenSUSE.

Requirements

Step 1: Update Packages

It is always a good practice to update the package repository before installing any new package. Use the following commands to update the packages and distribution:

sudo zypper update
sudo zypper dist-upgrade

Step 2: Install Thumbor Dependencies

Thumbor requires the following dependencies to be installed on your system:

Use the following command to install these dependencies:

sudo zypper install python3 libjpeg8 libpng16-16 libwebp7 python3-Pillow python3-image python3-requests python3-tornado python3-six python3-pycurl python3-yaml python3-argparse python3-coverage python3-mock python3-nose python3-pip libopenssl-devel libffi-devel libxml2-devel libxslt-devel libwebp-devel libjpeg-devel libpng-devel ImageMagick

Step 3: Install Thumbor

Now that all the dependencies are installed, we can proceed with the installation of Thumbor.

We will use pip3 to install the Thumbor package:

sudo pip3 install thumbor

Step 4: Start Thumbor

Thumbor can be started using the command thumbor.

thumbor

You should see the output that looks like:

INFO - Loading configuration from thumbor.conf
INFO - Loaded Cryptography Crypto version: 3.3.1
INFO - Loaded Async Redis version: 2.5.3 (/usr/lib64/python3.8/site-packages/aredis/__init__.py)
INFO - Loaded WarningFilter
INFO - Loaded RequestAttributesFilter
INFO - Loaded FileStorage
INFO - Loaded HMACDetector
INFO - Loaded BotoClientStorage
INFO - Server available at http://0.0.0.0:8888/

By default, Thumbor will be running on port 8888.

Step 5: Test Your Installation

To test if Thumbor is installed and running correctly, open a web browser and go to http://your_server_IP:8888/.

You should see the welcome message saying:

Welcome to Thumbor!
This is an empty image. GET parameters may change it.

Conclusion

In this tutorial, we have covered the steps required to install Thumbor on OpenSUSE. You can now use Thumbor API to resize, crop or filter your images.

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!