Liking cljdoc? Tell your friends :D

qy-upup.ai-pose-generator.core


extract-metadata-from-filenameclj

(extract-metadata-from-filename filename)

Extracts metadata from a filename assumed to be in the format: 'pose-{prompt-slug}-{style}-{timestamp}.jpg'.

Returns a map containing the extracted prompt-slug, style, and timestamp, or nil if the filename doesn't match the expected format.

Extracts metadata from a filename assumed to be in the format:
'pose-{prompt-slug}-{style}-{timestamp}.jpg'.

Returns a map containing the extracted prompt-slug, style, and timestamp, or nil if the filename doesn't match the expected format.
raw docstring

generate-pose-urlclj

(generate-pose-url {:keys [prompt style num-images]
                    :or {style "realistic" num-images 1}})

Generates a Supermaker AI Pose Generator URL based on provided parameters.

Takes a map of parameters including:

  • :prompt (required): The text prompt for the pose.
  • :style (optional): The artistic style (e.g., 'realistic', 'cartoon'). Defaults to 'realistic'.
  • :num-images (optional): The number of images to generate. Defaults to 1.

Returns a string representing the generated URL, or nil if the prompt is missing.

Generates a Supermaker AI Pose Generator URL based on provided parameters.

Takes a map of parameters including:
  - `:prompt` (required): The text prompt for the pose.
  - `:style` (optional): The artistic style (e.g., 'realistic', 'cartoon').  Defaults to 'realistic'.
  - `:num-images` (optional): The number of images to generate. Defaults to 1.

Returns a string representing the generated URL, or nil if the prompt is missing.
raw docstring

process-mock-pose-dataclj

(process-mock-pose-data pose-data)

Processes a list of mock pose data maps. Each map is expected to have a :prompt key.

This function adds a :processed? key to each map, set to true, and converts the :prompt to uppercase.

Returns a new list of processed pose data maps.

Processes a list of mock pose data maps.  Each map is expected to have a :prompt key.

This function adds a :processed? key to each map, set to true, and converts the :prompt to uppercase.

Returns a new list of processed pose data maps.
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