mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
Add min dimension logic to smartcrop
The pre-crop operations will sometime yield an image that is already the correct size or 1 pixel smaller (due to rounding error). Currently, bimg will try to smart crop anyways and yield a "bad extract area" error.
This commit is contained in:
parent
15cd115607
commit
ba2a6715ee
3 changed files with 81 additions and 1 deletions
BIN
testdata/test_bad_extract_area.jpg
vendored
Normal file
BIN
testdata/test_bad_extract_area.jpg
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 312 KiB |
Loading…
Add table
Add a link
Reference in a new issue