Liking cljdoc? Tell your friends :D

qy-upup.nano-banana-2-ai.core

Core namespace for interacting with the nanaimg.app image hosting service. Provides utility functions for generating URLs, extracting metadata (mocked), and processing mock image data.

Core namespace for interacting with the nanaimg.app image hosting service.
Provides utility functions for generating URLs, extracting metadata (mocked),
and processing mock image data.
raw docstring

image-urlclj

(image-url image-id)

Generates a direct image URL from a given image ID.

Example: (image-url "abc123xyz") ;; => "https://nanaimg.app/i/abc123xyz.png"

Generates a direct image URL from a given image ID.

Example:
(image-url "abc123xyz")  ;; => "https://nanaimg.app/i/abc123xyz.png"
raw docstring

mock-image-metadataclj

(mock-image-metadata image-id)

Generates mock metadata for a given image ID. This is a placeholder and should be replaced with actual metadata retrieval from the nanaimg.app API if one exists. Returns a map containing mock image details.

Example: (mock-image-metadata "def456uvw") ;; => {:id "def456uvw", :url "https://nanaimg.app/i/def456uvw.png", :size 12345, :upload-date "2024-01-01"}

Generates mock metadata for a given image ID.  This is a placeholder
and should be replaced with actual metadata retrieval from the nanaimg.app API
if one exists. Returns a map containing mock image details.

Example:
(mock-image-metadata "def456uvw")
;; => {:id "def456uvw", :url "https://nanaimg.app/i/def456uvw.png", :size 12345, :upload-date "2024-01-01"}
raw docstring

process-mock-image-dataclj

(process-mock-image-data image-ids)

Processes a collection of mock image IDs, generating metadata for each.

Example: (process-mock-image-data ["ghi789rst" "jkl012opq"]) ;; => [{:id "ghi789rst", :url "https://nanaimg.app/i/ghi789rst.png", :size ..., :upload-date "2024-01-01"} ;; {:id "jkl012opq", :url "https://nanaimg.app/i/jkl012opq.png", :size ..., :upload-date "2024-01-01"}]

Processes a collection of mock image IDs, generating metadata for each.

Example:
(process-mock-image-data ["ghi789rst" "jkl012opq"])
;; => [{:id "ghi789rst", :url "https://nanaimg.app/i/ghi789rst.png", :size ..., :upload-date "2024-01-01"}
;;     {:id "jkl012opq", :url "https://nanaimg.app/i/jkl012opq.png", :size ..., :upload-date "2024-01-01"}]
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