问题 I cropped an jpeg image, but the cropped image type is <class 'PIL.Image.Image'> how can i convert it to <class 'PIL.JpegImagePlugin.JpegImageFile'> ? thank you! import requests from PIL import Image from io import BytesIO img = Image.open(BytesIO(requests.get("https://mamahelpers.co/assets/images/faq/32B.JPG").content)) img2 = img.crop((1,20,50,80)) print(type(img)) # <class 'PIL.JpegImagePlugin.JpegImageFile'> print(type(img2)) # <class 'PIL.Image.Image'> 回答1: If you do not want a pyhsical