$ luarocks install ai-minecraft-image luarocks install ai-minecraft-image
local ai_minecraft_image = require("ai-minecraft-image")
local image_path = "path/to/your/image.png" -- Replace with your image path
local skin_data = ai_minecraft_image.create_skin(image_path)
if skin_data then
-- skin_data is a string containing the raw skin data.
-- You can now save this data to a file or use it in your application.
local file = io.open("output.png", "wb")
file:write(skin_data)
file:close()
print("Skin generated successfully!")
else
print("Error generating skin.")
end
local ai_minecraft_image = require("ai-minecraft-image")
Versions
Dependencies
lua >= 5.1