Liking cljdoc? Tell your friends :D

ventas.entities.file


->list-entityclj

(->list-entity files & [image-sizes])
source

already-transformed?clj

(already-transformed? file-entity size-entity)
source

clean-storageclj

(clean-storage)
source

create-from-file!clj

(create-from-file! source-path extension & [kw])

Creates a :file entity from an existing file

Creates a :file entity from an existing file
sourceraw docstring

filenameclj

(filename entity)
source

files-with-image-sizesclj

(files-with-image-sizes)
source

identifierclj

(identifier entity)
source

resized-file-keyclj

(resized-file-key file-entity size-entity)
source

size-entity->configurationclj

(size-entity->configuration {:image-size/keys [width height algorithm quality]})
source

slurpclj

(slurp entity)

Slurps the file corresponding to the :file entity

Slurps the file corresponding to the :file entity
sourceraw docstring

spitclj

(spit entity path)

Copies a file to the corresponding path of a :file entity. Does not overwrite the existing file, if any.

Copies a file to the corresponding path of a :file entity.
Does not overwrite the existing file, if any.
sourceraw docstring

transformclj

(transform file-entity size-entity & [{:keys [overwrite?]}])

Transforms a :file entity representing an image, using the configuration given by an :image-size entity. Saves the resulting image into the corresponding path, and returns given path (just returns the path if nothing has to be done)

Transforms a :file entity representing an image, using the configuration
given by an :image-size entity. Saves the resulting image into the corresponding
path, and returns given path (just returns the path if nothing has to be done)
sourceraw docstring

transform-allclj

(transform-all & [opts])
source

urlclj

(url entity)
source

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

× close