Open the original PNG at its native size, make an inventory of the colors in the pixels, and keep a separate working palette for editing. Treat transparency as its own information. Before combining nearly identical swatches, look at where they occur in the artwork. This workflow recovers the colors the file can establish and gives you a palette you can reuse even if the project's original swatch names, order or unused colors are unavailable.
Open the original PNG at its native pixel size
Duplicate the PNG before opening it in an editor that can show pixel coordinates, canvas dimensions and color values. Record the original width, height and color mode. Increase the editor's zoom so you can see each pixel, but leave the actual canvas dimensions alone. A rendered browser preview, a scaled screenshot or an image pasted from a messaging app may show a different set of values. Use the actual downloaded file whenever you have it.
Check whether the file is in indexed color or RGB with possible alpha. The Aseprite color mode guide explains how RGB pixels and indexed pixels are represented. With an indexed file, preserve a copy of the existing palette table if it is available in the editor. It may contain entries the visible image never uses. If the image is RGB, think of the first inventory as a list of values found in the image rather than an original project palette.
Record how the image got to you if you know. A file exported directly from a pixel editor and a copy cropped from an enlarged social preview can both have a PNG extension. That history helps explain an unexpectedly large number of colors later. It also reminds you which file to preserve when you share your result.
Build an inventory from visible pixels
For a small sprite, an editor's palette-from-image feature is a quick first pass. The color bar tutorial from Aseprite documents New Palette from Sprite and ways to save the result. In other editors, look for an equivalent that samples the image rather than reducing it to a preset number of colors. If there are only a handful of colors, you can also use the eyedropper with a one-pixel sample on a copy and write them down.
- Sample or extract the image at native resolution. Keep a separate record of the exact color values and, if the tool shows it, their opacity and frequency.
- Zoom in on at least one outline, a flat fill and a highlight. Compare the inventory with values read directly from the pixels.
- Check how the extraction treats transparent pixels. Record partially transparent colors separately if the palette tool only shows RGB.
- Save this inventory before you arrange or merge the swatches. Give the working copy a different name so you can compare the two.
If the feature outputs hundreds of colors, use that count as a clue. Check whether the source contains a smooth gradient, scaled edge or translucent shadow. Colors with only one or two pixels can still be intentional, such as a tiny glint in an eye. Location gives you more information than a count alone.
Separate solid swatches from transparency
A color value can appear at different opacities. For example, an opaque blue pixel and a blue pixel at half opacity have the same RGB triplet but look different when composited. Preserve alpha alongside the color when your editor supports it. The PNG specification describes how PNG stores image samples and transparency. The Aseprite transparency guide explains how a transparent entry can behave in indexed artwork.
| Pixel state | What belongs in the record | How to reuse it |
|---|---|---|
| Fully opaque | Exact RGB or the indexed entry in use | Add a normal working swatch |
| Partially transparent | RGB plus the original opacity or alpha value | Keep a separate translucent swatch or record the opacity as an editing instruction |
| Fully transparent | A note for transparency and any relevant transparent index | Preserve the empty region without adding an invisible RGB value as a visible color |
If you sample a transparent edge over a white background and then over a dark one, you may see two apparent colors. The composited appearances depend on the backing surface. Return to the pixel's actual color and alpha to record what the file contains. A light and dark preview helps you verify the reconstructed edge after you finish.
Check near-colors against where they appear
Make a swatch strip and click back into the image for each questionable color. Look for a repeated role. A color that appears in a consistent shadow area on several parts of a sprite may deserve its own swatch. A series of slightly different intermediate colors found along an enlarged outline may come from resampling or earlier processing. A tiny off-color highlight can be a deliberate feature. Keep the evidence in the exact inventory either way.
PNG compression itself is lossless. A PNG can contain pixels introduced before it was saved, such as colors from a resized screenshot, a previous lossy image, or a color conversion. If the outline contains similar colors, compare the arrangement of those pixels with a crisp region before deciding to merge them. If the history is unknown and the near-colors have plausible roles, keep them until a working copy gives you a reason to simplify.
Group the working swatches by how you paint with them. Put the outline colors next to the main fills, then group shadows and highlights or sort each ramp from dark to light. Name a swatch for what it does only where you can see that role in the reference. Label any choices you made during the reconstruction so a later editor can reproduce them.
Save the swatches and test them in a new sprite
Use the editor's palette save command and choose a format it can reload. If the format cannot preserve opacity, keep an accompanying note with the alpha values or store a tiny editable reference sprite. Build a small swatch grid or recolor one familiar motif at its actual dimensions. Reopen the file to check that the colors, order and transparent regions survive. Compare the same detail over a light and dark backing when edge opacity matters.
For a physical display, export a separate test file in the mode and dimensions the device accepts. The Divoom Pixoo-64 II provides a 64-by-64 LED grid for pixel art. A small swatch test on it verifies how that screen presents your working palette. This guide to tracing repeated colors to the file or display explains how to separate artwork from hardware rendering. Use the pixel display collection to check canvas size for other models before creating their test file.
Divoom Pixoo-64Ⅱ WiFi 64x64 ピクセル アート LED ディスプレイ & ソーシャル メディア カウンター
Divoom Pixoo-64 WiFi pixel art display with 64x64 LED panel. Social media counter, custom animations, clocks, and community art. App controlled frame.
$120.00 USD
$149.99 USD
コード適用 XMAS20
Buy now
FAQ
Can I recover the artist’s original palette order?
An indexed PNG may retain its own palette table and order. An RGB export does not provide the original editor's swatch arrangement. Preserve the file's table if present, and document any order you choose for the new palette.
Does PNG compression introduce extra colors?
PNG is lossless. Look for previous resizing, a screenshot, a lossy source or color conversion if you find extra values that were not expected. Preserve the original PNG while you investigate.
Why does the same swatch look different on my display?
The display and viewing conditions influence appearance. Compare your exported values in the file before using the physical screen as a final visual check. If several values look identical on the device, test adjacent swatches in a simple layout.
Keep both the extracted colors and your editable palette
Save the original PNG, the exact inventory and the named working palette together. Reopen the palette in a new document and reproduce one familiar outline, fill and highlight. When the image calls for transparency, check that edge separately on two backgrounds. You now have a palette you can paint with and a record that preserves what came from the file.
