I have code that loads and saves the image in two different ways - first using openCV, the second using PIL.
import cv2
from PIL import Image
img = cv2.imread("/home/myname/png/image.png")
cv2.imwrite("/home/myname/png/image_save.png", img)
img = Image.open("/home/myname/png/image.png")
img.save("/home/myname/png/image_save_pil.png")
The original image is 204.6 kB in size. The result obtained with openCV is 245.0 kB, the result of PIL is 204.6 kB.
Why does the image saved with openCV have a larger size?