Asset Goes Here Docs Sign in
ContentsHow style measurements work
Request and review

How style measurements work

A style check gives each delivered image eight readings and compares them with the readings of the style's own references and samples. This page describes how each reading is worked out, so that an artist or a generative tool can tell what moved a reading out of range and how to bring it back. All of this is plain arithmetic on pixels. No AI is involved, so the same file always gives the same numbers.

The best way to fit a style is still to work from its words and references. The readings show where an image drifted, but they can't tell you what makes it good, and a style check is a warning a reviewer can accept anyway.

Before anything is measured

The eight readings

ReadingRangeIn one line
Ink coverage0 to 1Share of pixels darker than luminance 0.18
Edge density0 to 1Share of pixels on a sharp change in brightness
Flat vs gradient0 to 1Share of pixels in a perfectly even fill
Colour count0 and upColours that cover at least 0.2% of the image
Saturation0 to 1Average vividness
Brightness0 to 1Average luminance
Warmth0 to 1Average lean to red (above 0.5) or blue (below 0.5)
Texture fingerprint0 to 1How far the image's small-scale patterns sit from the references' average

Ink coverage

The share of measured pixels whose luminance is below 0.18, which is about #2E2E2E in grey. It is meant to pick up inked contours, solid blacks and dense crosshatching.

Edge density

The share of pixels sitting on a sharp change in brightness. At each pixel, a Sobel filter on luminance gives the slope, and the pixel counts as an edge when the slope's strength is above 0.4. In practice that is a step of about a tenth of the full brightness range (around 26 grey levels out of 255) from one side of the pixel to the other, at the 256-pixel scale.

Flat vs gradient

The share of pixels that sit in a perfectly even fill. The image is halved again, to about 128 pixels on its long side, so JPEG speckle averages out, and only spots where all four pixels being averaged are opaque are kept. A pixel is flat when its Sobel slope there is below 0.012. That is very strict: a gradient that changes by more than about a fifth of the brightness range across the whole width of the image is already not flat, and so is any edge or line.

Colour count

How many colours carry the image. Each channel is cut into 16 levels, which gives 4,096 colour bins, and every measured pixel falls into one. The reading counts the bins that hold at least 0.2% of the measured pixels (1 in 500). Anti-aliasing, speckle and small accents fall below that and aren't counted.

Saturation

The average vividness of the measured pixels, using the HSV definition: (max − min) / max of the pixel's red, green and blue. Grey, black and white are 0; a pure colour is 1.

Brightness

The average luminance of the measured pixels, using the luminance formula above. Green carries most of it and blue very little, so a blue-heavy image reads darker than it looks next to a yellow or green one of the same value.

Warmth

The average of (R − B) / 2 + 0.5 over the measured pixels. 0.5 is neutral; pure red or yellow reads 1, pure blue reads 0. Green doesn't count at all, so a green image reads neutral.

Texture fingerprint

The only reading that isn't a single number. It describes how the image is drawn at a small scale, so it separates inked hatching from brushwork, or clean cel shading from a noisy painted surface, even when the colours match. It is made of 18 values in two halves.

Local patterns (10 values). For each pixel, the eight neighbours are compared with it, and a neighbour is marked when it is brighter by at least 0.02 (about 5 grey levels). Going round the ring of neighbours, if the marks form one unbroken run, the pixel is filed by how many neighbours are marked, from 0 to 8. Otherwise, when the marks are scattered around the ring, it goes into a tenth bin for broken patterns. Each bin's share of the pixels is one value.

Stroke directions (8 values). For each pixel with any slope at all (Sobel strength above 0.02), the slope's direction is placed in one of eight 22.5° slices of a half turn, weighted by how strong the slope is. An edge and its opposite count as the same direction. Each slice's share of the total is one value. Hatching laid at one angle piles weight into one or two slices; loose brushwork spreads it evenly; architecture and pixel art pile it into horizontal and vertical.

The distance. The fingerprint is compared with the average fingerprint of the style's references. The distance is half the summed difference of the patterns, and half the summed difference of the directions, averaged. 0 is the same texture; 1 is nothing in common. Review shows the image's distance against how far the style allows, which is how far its most unusual reference sits from that average, times 1.25, and never less than 0.05.

The style's range

For each of the first seven readings, the style's range is the lowest to the highest value among the references and samples it is compared with, widened on each side by 15% of that span, or by a minimum amount when the span is small:

ReadingLeast widening each side
Ink coverage0.02
Edge density0.02
Flat vs gradient0.04
Colour count4 colours
Saturation0.04
Brightness0.04
Warmth0.02

The range never goes below 0, and never above 1 except for colour count. When the image has a role tag, such as role=portrait, and at least three references share it, only those references and the style's sample images set the range. See Style checks.

An image is outside the style when two or more of the eight readings are out of range. One reading out of range is shown, but still matches. The summary line names the three readings furthest out, measured in widths of their range, so the first one named is usually the one to fix first.

Bring an image back into the style

Nudge an image toward the style

On Pro, Team and Enterprise, Asset Goes Here can make the tone and colour fixes for you. When the style check on a delivery waiting for review says it's outside, the card offers Nudge toward style… to the fulfiller who delivered it and to reviewers (admins and developers). Agents use nudge_to_style.

On Free and Supporter, the style check card explains nudging and links here, with an upgrade.

For agents: this page as Markdown is at /docs/style-measurements.md, and the CLI prints it with agh guide style-measurements.