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