(content-type-extension content-type)
Returns the filename extension from content-type
.
Returns the filename extension from `content-type`.
(create-profile-photo! {:keys [db] :as service} user photo & [opts])
Create the profile photo
of user
.
Create the profile `photo` of `user`.
The dimension used by the photos service to scale images.
The dimension used by the photos service to scale images.
(download-and-import service photo)
Download the original image of photo
and import it.
Download the original image of `photo` and import it.
(download-image service {:keys [id] :as photo})
Download the original image of photo
.
Download the original image of `photo`.
(image-storage-key service photo label content-type)
Return the storage key for photo
, label
and content-type
.
Return the storage key for `photo`, `label` and `content-type`.
(image-storage-url service photo label content-type)
Return the storage url for photo
, label
and content-type
.
Return the storage url for `photo`, `label` and `content-type`.
(import-image service photo image)
Import the image
of photo
.
Import the `image` of `photo`.
(resize! service photo dimensions & [opts])
Resize the photo
.
Resize the `photo`.
(resize-and-import service photo original dimension)
Resize the original
image of photo
to dimension
and import it.
Resize the `original` image of `photo` to `dimension` and import it.
(resize-image image dimension)
Resize image
to dimension
.
Resize `image` to `dimension`.
(save-image-to-db {:keys [db] :as service} photo image)
Save the image
to the database.
Save the `image` to the database.
(save-image-to-storage service photo image)
Upload the image
.
Upload the `image`.
(service & [opts])
Returns a photo service component.
Returns a photo service component.
(-download! service photo opts)
(-resize! service photo dimensions opts)
(update-photo-status service photo status)
Update the status
of photo
in the database.
Update the `status` of `photo` in the database.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close