std.image.base.size

length

added in 3.0

(length size)

calculates the length of the array

(length {:width 2 :height 3}) => 6

(length 100 200) => 20000

size->map

added in 3.0

(size->map size)

converts a size to a map

(size->map 100 200) => {:width 100, :height 200}

(size->map {:width 2 :height 3}) => {:width 2, :height 3}