Load balancing between multiple applications, backends, and servers is part of the process of optimizing resources, improving performance, and fault tolerance of the service. Nginx as a load balancer This web server is considered one of the most popular and productive solutions because it has the broadest functionality and flexibility when configuring. So Nginx is […]
Archives for April 2022
nginx 504 gateway time-out
A 504 gateway time-out error occurs when Nginx cannot receive a response from the service long enough. For example from PHP-FPM. Nginx and PHP-FPM The most common cause of this error is the collaboration of Nginx and PHP-FPM. In case there are very slow PHP scripts, Nginx will give a 504 gateway time-out when it […]
Images preview with ngx_http_image_filter_module
Often on multimedia sites, there is the task of displaying pictures in various sizes (thumbnails). Moreover, in most cases, you have to support several dimensional versions of the pictures. Today, We will describe a module with the name “ngx_http_image_filter_module”. This module allows you to solve the problem of resizing images directly through a Web server […]
Image optimization with webp
We already did a few articles about image optimization jpegoptim, jpegtran, optipng, pngcrush, and ImageMagick. Today, We want to describe image optimization with webp. Minification and compression have long become quite standard things for optimizing web page code. All popular web resources optimize images, use the same CSS whenever possible, and choose the right image […]
How to Install awscli
What is the AWS CLI? The AWS Command Line Interface (CLI) is for managing your AWS services from a terminal session on your own client, allowing you to control and configure multiple AWS services and implement a level of automation. If you’ve been using AWS for some time and feel comfortable clicking your way through […]
jpegtran for image optimization
jpegtran is a libjpeg command-line utility. It allows you to manipulate JPEG files, but its most useful function is optimization. Installation of jpegtran For Linux, this utility is usually found in packages: # apt-get install libjpeg-progs Usage For the basic version of optimization, we call the command: # jpegtran -copy none -optimize -outfile min.image.jpg image.jpg […]
jpegoptim for image optimization
Introduction Last time looked at the jpegtran command for optimizing images. Today, We will talk about jpegoptim. jpegoptim is a utility for optimizing JPEG files. It provides lossless optimization (based on optimizing the Huffman tables) and “lossy” optimization based on setting a maximum quality factor. Installation of jpegoptim For Debian users: # apt-get install jpegoptim […]
optipng for image optimization
Last time We were talked about jpegoptim and jpegtran. Today we will talk about OptiPNG. OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. This program also converts external formats (BMP, GIF, PNM, and TIFF) to optimized PNG, and performs PNG integrity checks and corrections. Installation Check […]
pngcrush for image optimization
Last time we talked about jpegoptim, jpegtran and optipng. Today we’re going to talk about pngcrush – an optimizer for PNG (Portable Network Graphics) files. pngcrush can be run from a command line in an MSDOS window, or from a UNIX or LINUX command line. Installation of pngcrush On Debian, this utility is included in […]
imagemagick for image optimization
Last time we were talked about jpegoptim, jpegtran, optipng and pngcrush for image optimization. Today, We will review ImageMagick. Use ImageMagick® to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. […]