imgp is a command line utility that can be used to resize and rotate JPEG and PNG images. It is designed to be lightweight and fast, making it well-suited for batch processing large numbers of images. imgp uses the libjpeg and libpng libraries to read and write JPEG and PNG images, respectively, and it can resize images by specifying either the width, height, or both. It can also rotate images by specifying the number of degrees.
imgp can also be used to crop images by specifying the coordinates for the top-left corner and the width and height of the crop area. imgp has a number of options that can be used to control the quality of the output image and to change the format of the output file. For example, you can change the quality of the output image, or change the output file format to JPG, PNG, or WEBP.
imgp can be useful for a wide range of applications such as, resizing images for website, social media, email, or creating thumbnails for a video player. It can also be used for preparing images for printing, or for creating multiple versions of an image with different sizes and resolutions.
If you encounter the below error while running the command imgp:
imgp: command not found
you may try installing the below package as per your choice of distribution:
|Debian||apt-get install imgp|
|Ubuntu||apt-get install imgp|
|Kali Linux||apt-get install imgp|
|Fedora||dnf install imgp|
|Raspbian||apt-get install imgp|
imgp Command Examples
1. Convert single images and/or whole directories containing valid image formats:
# imgp -x 1366x1000 path/to/directory path/to/file
2. Scale an image by 75% and overwrite the source image to a target resolution:
# imgp -x 75 -w path/to/file
3. Rotate an image clockwise by 90 degrees:
# imgp -o 90 path/to/file