Liking cljdoc? Tell your friends :D

image-aspect-ratio.preflight

Plan center crops from dimensions or local image headers.

Plan center crops from dimensions or local image headers.
raw docstring

inspect-fileclj

(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.
raw docstring

plan-cropsclj

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close