Resize Your Images with Python and OpenCV and Save Up to 90% of Space

Luigi Bungaro
3 min readMay 14, 2023
Reduce Image size with python and opencv

There can be many reasons to reduce image size and these are few examples:

  • To save space. Images can take up a lot of space, especially if they are high resolution. Reducing the dimension of an image can significantly reduce its file size.
  • To improve performance. Images can also slow down websites and applications. Reducing the dimension of an image can improve performance by making it smaller and easier to load.
  • To make images more compatible. Some websites and applications have limitations on the size of images that can be uploaded. Reducing the dimension of an image can make it compatible with these websites and applications.

How to Reduce the Dimension of Your Pictures with Python

There are many ways to reduce the dimension of your pictures. One way is to use a photo editing software like Photoshop or GIMP. However, these software can be expensive and time-consuming to learn.

A simpler way to reduce the dimension of your pictures is to use Python. Python is a powerful programming language that can be used for a variety of tasks, including image processing.

To reduce the dimension of your pictures with Python, you can use the library…

--

--

Luigi Bungaro

Management Engineer passionate about Management, Innovation, DataScience, Digital Marketing, AI, Strategy, Technology, Innovation, Python and Data Science