Commit Graph

8 Commits (5f7d9a475cf59dd98166855b094a3d9b333bac16)

Author SHA1 Message Date
Robert Sachunsky 867a7261de
pil_cv2.check_dpi: fix class membership test
(depending on how the `PIL.Image` was instantiated – file plugin or array interface – the previous `isinstance` could fail, provoking a fall-through to `cv2pil` which does not work)
12 months ago
Konstantin Baierer 6c8852eb04 check_dpi: catch Pillow choking on faulty img, return 230 3 years ago
Konstantin Baierer ff265eee5c cv2pil: do COLOR_BGR2RGB conversion 3 years ago
Konstantin Baierer d0b0e23ac6 do DPI calculation as part of caching images 3 years ago
Konstantin Baierer 4897cefdb7 allow passing PIL image to Eynollah w/o disk I/O 3 years ago
Konstantin Baierer d40c453dad
check_dpi: raise exception if resolution == 1 to trigger except clause
Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
3 years ago
Konstantin Baierer 1715f0d8b3 allow overriding DPI 3 years ago
Konstantin Baierer 58c4403e13 rename package to qurator.eynollah 3 years ago