| Crates.io | ai_minecraft_image |
| lib.rs | ai_minecraft_image |
| version | 68.0.18 |
| created_at | 2026-01-08 03:44:34.833304+00 |
| updated_at | 2026-01-13 09:44:14.185169+00 |
| description | High-quality integration for https://supermaker.ai/image/blog/how-to-turn-your-image-into-minecraft-skin/ |
| homepage | https://supermaker.ai/image/blog/how-to-turn-your-image-into-minecraft-skin/ |
| repository | https://github.com/qy-upup/ai-minecraft-image |
| max_upload_size | |
| id | 2029490 |
| size | 12,194 |
A Rust crate to process images for use as Minecraft skins, providing utilities for resizing, color manipulation, and format conversion. This library simplifies the creation of custom Minecraft skins from existing images.
Add the following to your Cargo.toml file under the [dependencies] section:
toml
ai-minecraft-image = "0.1.0" # Replace with the latest version
Here are several examples demonstrating how to use the ai-minecraft-image crate:
1. Basic Image Resizing:
This example demonstrates resizing an image to the standard Minecraft skin dimensions (64x64). rust use ai_minecraft_image::{resize_image, ImageFormat}; use image::io::Reader as ImageReader;
fn main() -> Result<(), Box
2. Converting to Grayscale:
This example converts an image to grayscale before resizing it. rust use ai_minecraft_image::{resize_image, grayscale, ImageFormat}; use image::io::Reader as ImageReader;
fn main() -> Result<(), Box
3. Applying a Color Filter:
This example applies a red color filter to the image. rust use ai_minecraft_image::{resize_image, apply_color_filter, ImageFormat, Color}; use image::io::Reader as ImageReader;
fn main() -> Result<(), Box
4. Converting to a Specific Image Format:
This example resizes an image and saves it as a JPEG. rust use ai_minecraft_image::{resize_image, ImageFormat}; use image::io::Reader as ImageReader;
fn main() -> Result<(), Box
5. Combining Operations:
This example combines grayscale conversion, color filtering (blue), and resizing. rust use ai_minecraft_image::{resize_image, grayscale, apply_color_filter, ImageFormat, Color}; use image::io::Reader as ImageReader;
fn main() -> Result<(), Box
image crate.MIT
This crate is part of the ai-minecraft-image ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/image/blog/how-to-turn-your-image-into-minecraft-skin/