Liking cljdoc? Tell your friends :D

clj-img-resize.core


get-image-dimentionsclj

(get-image-dimentions buffered-image)

This is public because it is useful for testing and debugging

This is public because it is useful for testing and debugging
sourceraw docstring

scale-image-to-dimension-limitclj

(scale-image-to-dimension-limit input-stream-or-file width height file-type)

Returns a BufferedInputstream representing a thumbnail. Resulting image will be scaled such that:

  1. width/height ratio is retained
  2. Both the image width and image height are less than or equal to the input width and height.

The input stream or file must be a valid image. The units of dimensions are in pixels

Use this if you want an image that is within width and height, while retaining its proportion.

Returns a BufferedInputstream representing a thumbnail.
Resulting image will be scaled such that:
1. width/height ratio is retained
2. Both the image width and image height are less than or equal to the input width and height.

The input stream or file must be a valid image.
The units of dimensions are in pixels

Use this if you want an image that is within width and height,
while retaining its proportion.
sourceraw docstring

scale-image-to-exact-dimensionclj

(scale-image-to-exact-dimension input-stream-or-file w h file-type)

Returns a BufferedInputstream instance that represents the original image with the specified width and heights The w and h are specified in pixels. file-type is a string of of the desired output file type such as "jpeg" "png" or " Use this if you know the exact end dimension of the end result you desire

Returns a BufferedInputstream instance that represents the original image with the specified width and heights
The w and h are specified in pixels.
file-type is a string of of the desired output file type such as "jpeg" "png" or "
Use this if you know the exact end dimension of the end result you desire
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close