I need help resizing an image to 1 mb exactly in python. I am going to use the image in an OCR api and it has to retain as much quality as possible. Is there any easy way to