Plan center crops from dimensions or local image headers.
Plan center crops from dimensions or local image headers.
(inspect-file path ratios)Read first-frame stored dimensions and plan crops for the supplied ratios. The file is opened locally. ImageIO reader support and EXIF limitations apply.
Read first-frame stored dimensions and plan crops for the supplied ratios. The file is opened locally. ImageIO reader support and EXIF limitations apply.
(plan-crops width height ratios)Return the largest exact-ratio centered rectangle for each ratio pair. Coordinates use a top-left origin. If a ratio cannot fit even at one unit, its crop is nil and its retained fraction is zero.
Return the largest exact-ratio centered rectangle for each ratio pair. Coordinates use a top-left origin. If a ratio cannot fit even at one unit, its crop is nil and its retained fraction is zero.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |