VOOZH about

URL: https://www.geeksforgeeks.org/python/python-scaling-image-using-pgmagic/

⇱ Python - Scaling image using pgmagick - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python - Scaling image using pgmagick

Last Updated : 10 Oct, 2022

Scaling is the process of resizing an image. We deal with the dimensions of an image. Scaling down deals with making image smaller while Scaling up refers to increase the size of image. Scaling is a very important process in image manipulation because sometimes we get image size smaller than expected and sometimes it is very large. So, in order to make image of perfect size to use Scaling is performed. 👁 Image
In this article we will learn how we can perform scaling using pgmagick in python. Code : 

Input Image: 👁 Image
Output: 👁 Image
Scaling JPEG image - JPEG Stands for Joint Photographic Experts Group. Due to high number color support upto 2^24 i.e. 16, 777, 216 this is used in commonly every digital camera. And support varying levels of compression. 

Input Image: 👁 Image
Output: 👁 Image

Comment
Article Tags: