Merge branch 'main' into area-selection

This commit is contained in:
viljarb0
2025-11-03 21:19:59 +01:00
committed by GitHub
26 changed files with 33866 additions and 235 deletions

View File

@@ -19,10 +19,8 @@ class CropImage(ImageManipulation):
image: The image to manipulate
parameters: Parameters for the manipulation (e.g., crop coordinates)
"""
if image is None or getattr(image, "_imageData", None) is None:
return
pil_image = image._imageData
pil_image = image.getImage()
# If parameters provided as dict with width/height, do centered crop
if isinstance(parameters, dict) and "width" in parameters and "height" in parameters: