(extract-metadata url)Extracts metadata from a Supermaker AI Group Photo URL. This assumes the URL
follows the format generated by generate-supermaker-url.
Params: url - The Supermaker AI Group Photo URL.
Example: (extract-metadata "https://supermaker.ai/image/ai-group-photo/?num-people=5&style=cartoon") ;=> {:num-people "5", :style "cartoon"}
Extracts metadata from a Supermaker AI Group Photo URL. This assumes the URL
follows the format generated by `generate-supermaker-url`.
Params:
url - The Supermaker AI Group Photo URL.
Example:
(extract-metadata "https://supermaker.ai/image/ai-group-photo/?num-people=5&style=cartoon")
;=> {:num-people "5", :style "cartoon"}
(generate-supermaker-url base-url params)Generates a Supermaker AI Group Photo URL based on a base URL and a map of parameters.
Params: base-url - The base URL for Supermaker AI Group Photo. params - A map of key-value pairs to be appended as query parameters.
Example: (generate-supermaker-url "https://supermaker.ai/image/ai-group-photo/" {:num-people 5 :style "cartoon"}) ;=> "https://supermaker.ai/image/ai-group-photo/?num-people=5&style=cartoon"
Generates a Supermaker AI Group Photo URL based on a base URL and a map of parameters.
Params:
base-url - The base URL for Supermaker AI Group Photo.
params - A map of key-value pairs to be appended as query parameters.
Example:
(generate-supermaker-url "https://supermaker.ai/image/ai-group-photo/" {:num-people 5 :style "cartoon"})
;=> "https://supermaker.ai/image/ai-group-photo/?num-people=5&style=cartoon"
(mock-group-photo-data num-photos)Generates mock data for a group photo, including the number of people, style, and other parameters.
Params: num-photos - The number of mock photo data sets to generate.
Returns: A vector of maps, where each map represents a set of parameters for a single group photo.
Example: (mock-group-photo-data 2) ;=> [{:num-people 3, :style "realistic", :location "beach"} {:num-people 5, :style "cartoon", :location "city"}]
Generates mock data for a group photo, including the number of people, style, and other parameters.
Params:
num-photos - The number of mock photo data sets to generate.
Returns:
A vector of maps, where each map represents a set of parameters for a single group photo.
Example:
(mock-group-photo-data 2)
;=> [{:num-people 3, :style "realistic", :location "beach"} {:num-people 5, :style "cartoon", :location "city"}]
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |