Skip to content
Snippets Groups Projects

Fix image cropping in CachedElement.open_image

Merged Erwan Rouchet requested to merge fix-cache-open-image into master
All threads resolved!
2 files
+ 79
19
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -79,7 +79,7 @@ class CachedElement(Model):
bounding_box.width != self.image.width
or bounding_box.height != self.image.height
):
box = f"{bounding_box.x},{bounding_box.y},{bounding_box.x + bounding_box.width},{bounding_box.y + bounding_box.height}"
box = f"{bounding_box.x},{bounding_box.y},{bounding_box.width},{bounding_box.height}"
else:
box = "full"
Loading