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:
Patrick Zhang 2019-01-10 15:26:36 -08:00
parent 15cd115607
commit ba2a6715ee
3 changed files with 81 additions and 1 deletions

BIN
testdata/test_bad_extract_area.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB