Liking cljdoc? Tell your friends :D

qy-upup.ai-group-photo.core


extract-metadataclj

(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"}
raw docstring

generate-supermaker-urlclj

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

mock-group-photo-dataclj

(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"}]
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close