from wand.image import Image
with Image(filename=filename) as img:
    img.resize(width=scaled_width, height=scaled_hight)
library.MagickSetCompressionQuality(img.wand, 75)
img.save(filename=output_destination)
How to optimize image size using wand in python