I wanted to try out some simple operations on files and I started with opening and saving files (I use Python)
image = cv2.imread("image.png")
cv2.imwrite("image_processed.png", image)
After this operation my original image
from 33kB transforms into the same looking 144kB image.
I have tried doing something like this : http://opencv.itseez.com/modules/highgui/doc/reading_and_writing_images_and_video.html?highlight=imwrite#imwrite
params = list()
params.append(cv.CV_IMWRITE_PNG_COMPRESSION)
params.append(8)
image = cv2.imread("image.png")
cv2.imwrite("image_processed.png",image,params)
But this does not change much ( size decreased to 132kB )
This is the image which I am working with:
scikit-image
and using itsimsave
worked wonders. – Wrongheaded