What did you do?
resize the width and height of a image to 90%
What did you expect to happen?
I expect the file size(bytes) become smaller,
What actually happened?
The file size(bytes) become larger, the original file size is 80KB,
and the resized image file size become 700KB 89KB
What are your OS, Python and Pillow versions?
- OS: win10 21H2
- Python: Python 3.10.0
- Pillow: '9.3.0' (PIL.version)
im = Image.open(sourceFilePath)
width, height = im.size
width, height = int(width*0.9), int(height*0.9)
im = im.resize((width, height))
im.save(targetFilePath)

What did you do?
resize the width and height of a image to 90%
What did you expect to happen?
I expect the file size(bytes) become smaller,
What actually happened?
The file size(bytes) become larger, the original file size is 80KB,
and the resized image file size become
700KB89KBWhat are your OS, Python and Pillow versions?