(create-from-file! source-path extension & [kw])
Creates a :file entity from an existing file
Creates a :file entity from an existing file
(size-entity->configuration {:image-size/keys [width height algorithm quality]})
(slurp entity)
Slurps the file corresponding to the :file entity
Slurps the file corresponding to the :file entity
(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.
(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)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close