Don't resize images that are the same size

retune-the-third
Shane Smiskol 21 hours ago
parent d72a01d739
commit fc253fe1ee
  1. 3
      system/ui/lib/application.py

@ -287,7 +287,10 @@ class GuiApplication:
rl.image_alpha_premultiply(image)
if width is not None and height is not None:
same_dimensions = image.width == width and image.height == height
# Resize with aspect ratio preservation if requested
if not same_dimensions:
if keep_aspect_ratio:
orig_width = image.width
orig_height = image.height

Loading…
Cancel
Save