generate_image_file: don't hardcode the file format (#6538)
It doesn't make much sense to encode the image as JPEG if the given file name is "image.png". Instead, let PIL select the format based on the requested file name.
Showing
想要评论请 注册 或 登录