I have a script which creates an image and the it crops it. The problem is that after I call the crop() method it does not save on the disk
crop = image.crop(x_offset, Y_offset, width, height).load()
return crop.save(image_path, format)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to pass the arguments to
.crop()in a tuple. And don’t use.load()That’s all you need. Although, I’m not sure why you’re returning the result of the save operation; it returns
None.