Liking cljdoc? Tell your friends :D

burningswell.services.photos


content-type-extension

(content-type-extension content-type)

Returns the filename extension from content-type.

Returns the filename extension from `content-type`.
raw docstring

create-profile-photo!

(create-profile-photo! {:keys [db], :as service} user photo & [opts])

Create the profile photo of user.

Create the profile `photo` of `user`.
raw docstring

dimensions

The dimension used by the photos service to scale images.

The dimension used by the photos service to scale images.
raw docstring

download!

(download! service photo & [opts])

Create the photo.

Create the `photo`.
raw docstring

download-and-import

(download-and-import service photo)

Download the original image of photo and import it.

Download the original image of `photo` and import it.
raw docstring

download-image

(download-image service {:keys [id], :as photo})

Download the original image of photo.

Download the original image of `photo`.
raw docstring

image-storage-key

(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`.
raw docstring

image-storage-url

(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`.
raw docstring

import-image

(import-image service photo image)

Import the image of photo.

Import the `image` of `photo`.
raw docstring

resize!

(resize! service photo dimensions & [opts])

Resize the photo.

Resize the `photo`.
raw docstring

resize-and-import

(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.
raw docstring

resize-image

(resize-image image dimension)

Resize image to dimension.

Resize `image` to `dimension`.
raw docstring

save-image-to-db

(save-image-to-db {:keys [db], :as service} photo image)

Save the image to the database.

Save the `image` to the database.
raw docstring

save-image-to-storage

(save-image-to-storage service photo image)

Upload the image.

Upload the `image`.
raw docstring

service

(service & [opts])

Returns a photo service component.

Returns a photo service component.
raw docstring

Serviceprotocol

-download!
(-download! service photo opts)
-resize!
(-resize! service photo dimensions opts)

update-photo-status

(update-photo-status service photo status)

Update the status of photo in the database.

Update the `status` of `photo` in the database.
raw docstring

user-agent

The user agent string.

The user agent string.
raw docstring

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

× close