Skip to content

Commit

Permalink
fix crop_size
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton committed Jan 21, 2025
1 parent b9e8a2a commit fde1f30
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gradio/components/image_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,6 @@ def convert_and_format_image(
with warnings.catch_warnings():
warnings.simplefilter("ignore")
im = im.convert(self.image_mode)
if self.crop_size and not isinstance(self.crop_size, str):
im = image_utils.crop_scale(
im, int(self.crop_size[0]), int(self.crop_size[1])
)
return image_utils.format_image(
im,
cast(Literal["numpy", "pil", "filepath"], self.type),
Expand Down

0 comments on commit fde1f30

Please sign in to comment.