mirror of https://github.com/koreader/koreader
Fix crash with kopt semi-auto crop on blank page
When such blank page has only a few black pixels (dust), it would result in a really small cropped area, than when scaled to fit screen, would cause a crash with : ./ffi/mupdf.lua:63: could not allocate pixmap: malloc of array (451342 x 612558 bytes) failed (integer overflow) (1) Fix similar to what is done in KoptInterface:getAutoBBox(): when cropped area too small, fall back to whole page (or here: to user's manually set area).pull/2801/head
parent
a192178bf6
commit
76f6b49731
Loading…
Reference in New Issue