mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
image.crop built an explicit rectangle only when x, y, width and height were
all integers with width and height above 0; anything else fell back to the
selection's bounds, so width 0, a negative or string size, or only some of
the four keys cropped to the selection and reported success. A rectangle
that is passed (any of the four keys non-null) but incomplete or empty is now
a bad-params error and the document is unchanged; {} still crops to the
selection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>