Skip to content

JobYu/image2pixel-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

image2pixel

A web-based tool that converts regular images into pixel art with customizable settings.

Original Result
Original 1 Result 1
Original 2 Result 2
Original 3 Result 3

Version

Current version: v1.0.4

v1.0.4

  • Added support for Print

v1.0.3

  • Added support for images with transparency (alpha channel)

v1.0.2

  • Added grid display feature
  • Improved download button interaction

v1.0.1

  • Added CSS media query to hide the original image container on mobile screens (width <= 768px)
  • Adjusted the result container to take full width and provide better height utilization
  • Improved mobile viewing experience by focusing on the converted result

v1.0.0

  • Easy-to-use interface
  • Real-time preview
  • Adjustable pixel block size (2-10 pixels)
  • Customizable color palette (2-64 colors)
  • Download results as PNG
  • No installation required - works in browser

Technical Details

Background Color Detection

  • Samples corners of the image to determine background color
  • Calculates average RGB values for consistent detection

Anti-Aliasing Removal Algorithm

  • Uses color distance comparison
  • Default threshold: 30 (adjustable)
  • Replaces similar colors with exact background color

Image Scaling

  • Dynamic scaling based on input dimensions
  • Preserves aspect ratio
  • Uses nearest-neighbor scaling for pixel-perfect results

How to Use

  1. Upload an image using the file input
  2. Adjust settings:
    • Block Size: Controls pixel size
    • Color Count: Sets the number of colors in the final image
  3. The image will be automatically processed with:
    • Scaled dimensions (if needed)
    • Pixel blocking
    • Color quantization
    • Anti-aliasing removal
  4. Download or print the result using the Save or Print buttons
    • Print function automatically fills A4 page
    • Grid display is preserved when printing (if enabled)

Desktop Version on Steam

A desktop version of this pixel art generator is now available on Steam! Built on the same algorithm, the desktop application offers additional features and convenience.

Image2pixel-PixelArtGenerator on Steam

If you enjoy this web tool, please consider adding the desktop version to your Steam wishlist. Thank you for your support! 🙏

Technical Requirements

  • Modern web browser with HTML5 Canvas support
  • JavaScript enabled
  • Recommended browsers: Chrome, Firefox, Safari, Edge

Features

  • Easy-to-use interface
  • Real-time preview
  • Adjustable pixel block size (2-10 pixels)
  • Customizable color palette (2-64 colors)
  • Download results as PNG
  • Print results directly from browser
  • No installation required - works in browser
  • Improved mobile viewing experience

Project Structure

web/
├── css/
│   └── style.css      # Styles
├── js/
│   └── main.js        # Core functionality
└── index.html         # Main page

Local Development

Simply clone the repository and open web/index.html in your browser. No build process or dependencies required.

git clone htts://github.com/JobYu/image2pixel-web.git

License

Copyright © 2024 image2pixel.app. All rights reserved.

Acknowledgments

Thanks to Pixel It for the inspiration.

About

A simple web-based tool that converts images into pixel art style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •