Liking cljdoc? Tell your friends :D

qy-upup.ai-minecraft-image.core


extract-image-metadataclj

(extract-image-metadata image-path)

Extracts basic metadata from an image file. Currently only supports file size.

image-path: The path to the image file.

Returns: A map containing the file size in bytes, or nil if the file doesn't exist. Example: (extract-image-metadata "resources/my-image.png") => {:file-size 12345}

Extracts basic metadata from an image file. Currently only supports file size.

image-path: The path to the image file.

Returns: A map containing the file size in bytes, or nil if the file doesn't exist.
Example: (extract-image-metadata "resources/my-image.png") => {:file-size 12345}
raw docstring

generate-skin-urlclj

(generate-skin-url image-name size)

Generates a Minecraft skin URL based on the given image name and size.

image-name: The name of the image file (without extension). size: The desired size of the skin (e.g., "64x64").

Returns: A string representing the URL for the Minecraft skin. Example: (generate-skin-url "my-image" "64x64") => "https://supermaker.ai/image/minecraft-skin/my-image/64x64"

Generates a Minecraft skin URL based on the given image name and size.

image-name: The name of the image file (without extension).
size: The desired size of the skin (e.g., "64x64").

Returns: A string representing the URL for the Minecraft skin.
Example: (generate-skin-url "my-image" "64x64") => "https://supermaker.ai/image/minecraft-skin/my-image/64x64"
raw docstring

process-mock-dataclj

(process-mock-data image-data options)

Processes mock image data, simulating image processing steps. This is a placeholder.

image-data: A map representing the image data (e.g., pixels, dimensions). options: A map of processing options (e.g., dithering, scaling).

Returns: A map representing the processed image data. Currently just returns the input. Example: (process-mock-data {:width 100 :height 100} {:dither true}) => {:width 100 :height 100}

Processes mock image data, simulating image processing steps.  This is a placeholder.

image-data: A map representing the image data (e.g., pixels, dimensions).
options: A map of processing options (e.g., dithering, scaling).

Returns: A map representing the processed image data.  Currently just returns the input.
Example: (process-mock-data {:width 100 :height 100} {:dither true}) => {:width 100 :height 100}
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