I want to write Python code that reads a .jpg image, resizes some of its RBG components, and saves it again without resizing the image.
I tried to load the image using OpenCV and PyGame, however, when I tried the simple Load / Save code using three different functions, the resulting images are larger than the original image. This is the code I used.
>>> import cv, pygame
The original size was 48.3K, and the result was 75.5K, 75.5K, 49.9K.
So, I'm not sure if I am missing something that makes the original image resize, even though I did only Load / Save or not?
And is there a more efficient library than OpenCV or PyGame ?!
source share