If you choose to use virtualenv, note that Thumbor requires Python 2.7 and will not work with newer versions of pip (e.g., these instructions use pip 8.1.1). If you are installing Thumbor in a standalone environment, virtualenv is not necessary. For the sake of simplicity, these instructions do not use virtualenv. Note: Many Python developers use virtualenv to manage their packages. Sudo apt-get install -y libjpeg-dev libpng-dev libwebp-dev webp Install Thumbor # Sudo apt-get install -y python-opencv libopencv-dev # image format packages Sudo apt-get install -y libcurl4-openssl-dev libssl-dev # computer vision packages Thumbor's documentation does not explicitly mention these dependencies, but Thumbor will not install successfully without them. Install pip, the package manager for Python. Update and upgrade Ubuntu's already-installed packages: sudo apt-get update -y & sudo apt-get upgrade -y This post assumes that you know how to create a Ubuntu 16.04 LTS VM on a cloud platform like Google Cloud, AWS, or Azure and how to use command line tools to set up the VM. If dependencies download quickly, the installation can be completed in 5 to 10 minutes. Although easy to use, Thumbor is notoriously difficult to install but these instructions simplify the process. Creating a VM might sound like more work than installing Thumbor on your local machine, but the minutes that you take to create a VM will probably save you hours or days of frustration trying to get Thumbor to properly install on your local machine. Ubuntu 16.04 is a very common image and these instructions are intended to work on any cloud provider. You'll be installing Thumbor on a VM running Ubuntu 16.04. Once installed, you'll be able to use Thumbor as an API for transforming your images. This guide explains how to install Thumbor on your own server. It's suitable for production use Wikipedia and Square both use Thumbor. Unlike most image CDNs, Thumbor is open-source and can be used for free to resize, compress, and transform images. Image CDNs make it easy to dynamically optimize the aesthetics and performance of your images.
0 Comments
Leave a Reply. |