A modern web application that allows you to upload images and convert them to pixel art style with real-time adjustments.
- Image Upload: Drag and drop or click to upload images (JPG, PNG, GIF)
- Real-time Processing: See changes instantly as you adjust settings
- Pixel Size Control: Adjust the size of pixels to create different levels of pixelation
- Image Filters:
- Contrast: Adjust the difference between light and dark areas
- Brightness: Control the overall lightness of the image
- Saturation: Modify the intensity of colors
- Download: Save your pixel art creations as PNG files
- Reset: Quickly return to default settings
- Responsive Design: Works on desktop and mobile devices
-
Upload an Image
- Click on the upload area or drag and drop an image file
- Supported formats: JPG, PNG, GIF
-
Adjust Settings
- Pixel Size: Higher values create larger, more visible pixels
- Contrast: Increase to make differences between light and dark areas more pronounced
- Brightness: Adjust the overall lightness of the image
- Saturation: Control how vivid the colors appear
-
Download Your Creation
- Click the "Download" button to save your pixel art as a PNG file
-
Reset Settings
- Use the "Reset" button to return all settings to their default values
- Built with vanilla JavaScript and HTML5 Canvas
- No external dependencies required
- Uses modern browser APIs for image processing
- Responsive design with CSS Grid and Flexbox
- Real-time image filtering and pixelation
- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
- Clone or download this repository
- Open
index.htmlin your web browser - Start creating pixel art!
pixel-art-editor/
├── index.html # Main HTML file
├── styles.css # CSS styles and responsive design
├── script.js # JavaScript functionality
└── README.md # This file
The application uses HTML5 Canvas for image processing:
- Image Loading: Images are loaded and displayed on a canvas
- Filtering: Pixel-by-pixel manipulation for brightness, contrast, and saturation
- Pixelation: The image is scaled down and then back up to create the pixelated effect
- Real-time Updates: All changes are applied immediately as you adjust the controls
You can easily customize the application by:
- Modifying the CSS in
styles.cssto change the appearance - Adjusting the filter ranges in
script.js - Adding new image effects by extending the
applyFiltersmethod - Changing the default settings in the constructor
This project is open source and available under the MIT License. # pixel-art-editor