List image pixels as rgba values
Nothing found — try another word.
This tool has no parameters — the result is ready as is.
Lists every pixel as rgba(r, g, b, a), one image row per line.
Nothing found — try another word.
This tool has no parameters — the result is ready as is.
List image pixels as rgba values prints every pixel as rgba(r, g, b, a), with whole numbers from 0 to 255 and the alpha running through the same range. That is the CSS spelling of a color, and the same form turns up in canvas scripts, design tokens and documentation — the convenient one to read when a number has to be understandable rather than compact. The pixels are listed one image row per line, so you can still count the width by counting the values on a line. What you get is always the decoded pixels: a JPG has no alpha channel, so its fourth value is 255 on every line.
A channel is a byte, so it runs from 0 to 255. CSS opacity uses 0 to 1, so a value from a stylesheet must be multiplied by 255.
Use the rgba list when a person has to read the numbers, hex when you want half as many characters, and plain bytes for a typed array.
Yes. The RGB values to PNG tool rebuilds the picture from exactly this form as soon as you give it the width of a row.
Yes, as rgba(..., 0). If every alpha reads 255, the source had no transparency to begin with - a JPG cannot hold any.