Gratis å bruke, uten konto

Bildehistogram

Gratis verktøy i nettleseren. Oppgi verdiene dine og få et resultat på denne enheten.

Et histogram for et utvalg av skjermvisningen, ikke en fargestyrt måling.

Resultat

Hvordan fungerer dette verktøyet?

Velg et bilde. En nedskalert kopi analyseres i denne nettleseren.

Veiledning

Slik bruker du Bildehistogram

The Image Histogram tool counts how the brightness values of a picture are spread out. You choose an image and it draws a chart of its red, green, blue and luminance values in 16 groups each. A shrunken copy is read inside your browser. The chart is a quick look at tone, not a lab measurement of colour.

Slik gjør du

  1. Choose an image file from your device with the file picker. Most common picture types that your browser can open will work.
  2. Press Calculate / create. The tool shrinks a copy so its longest side is at most 512 pixels, then counts the pixels.
  3. Read the chart and the line Opaque pixels sampled. Red, green, blue and luminance are drawn as overlapping bars; the legend gives each colour.

Eksempler

One pure red pixel

Du skriver inn
Bilde
1 × 1 pixel, colour 255, 0, 0
Du får
Rød
gruppe 1 og 16 inneholder 1 hver
Grønn
Gruppe 13 inneholder 1
Blå
group 1 holds 1
Luminans
group 4 holds 1
Ugjennomsiktige piksler kontrollert
1

Each channel is split into 16 groups of 16 levels. A red value of 255 lands in the top group, and green and blue at 0 in the bottom one. Luminance is 0.2126 times 255, about 54, which falls in group 4.

Kjørt med verktøyets egen kode.

One black pixel and one white pixel

Du skriver inn
Bilde
2 × 1 pixels: 0, 0, 0 and 255, 255, 255
Du får
Rød
groups 1 and 16 hold 1 each
Grønn
groups 1 and 16 hold 1 each
Blå
groups 1 and 16 hold 1 each
Luminans
groups 1 and 16 hold 1 each
Ugjennomsiktige piksler kontrollert
2

Black fills the lowest group of every channel and white fills the highest. A real photo with strong shadows and highlights shows tall bars at both ends in the same way.

Kjørt med verktøyets egen kode.

A see-through pixel is skipped

Du skriver inn
Bilde
2 × 1 pixels: green with 100 out of 255 opacity, and the same green fully opaque
Du får
Ugjennomsiktige piksler kontrollert
1
Grønn
group 13 holds 1

Pixels with an alpha value below 128 are ignored, so the first pixel is not counted. Only the opaque one is, and it shows in the green channel.

Kjørt med verktøyets egen kode.

Pressing the button with no file

Du skriver inn
Bilde
none
Du får
Melding
Check the entered values.

The tool needs a file before it can count anything, and with none chosen it shows this general message rather than a specific one. If a file is chosen but the browser cannot open it as a picture, the message is "The image could not be read." instead.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

Når det er nyttig

  • Check whether a photo is too dark, too bright or lacking contrast before you edit it.
  • Compare the tone of two pictures by running each one and looking at the chart.
  • Teach how digital images store brightness, using a plain bar chart of real pixels.

Begrensninger

  • Counts come from a copy scaled down to at most 512 pixels on the longest side, so the pixel total is of the small copy and not of your full image.
  • Each channel is drawn on its own height scale, tallest bar to the top, so bar heights cannot be compared across red, green and blue. The chart has no numbers or axis labels.
  • It is a sampled display histogram, not a RAW or colour-managed measurement. Luminance uses the 0.2126, 0.7152 and 0.0722 weights on the stored values, without converting them to linear light first.

Tips

  • Bars piled at the left mean many dark pixels, and bars piled at the right mean many bright ones. A hump in the middle suggests little contrast.
  • Read the luminance bars first for overall brightness, then use the colour bars to see which channel leans high or low.
  • Run an image before and after an edit to see how the spread changed.

Kilder

Vanlige spørsmål

What does an image histogram show?

It counts pixels by brightness. Here the red, green, blue and luminance values, each from 0 to 255, are grouped into 16 steps. Tall bars show where most of the pixels sit, from dark on the left to bright on the right.

Is my image uploaded?

No. The file is opened and counted in your browser, and the tool does not upload or save your input. Only a shrunken copy is read to count the pixels.

Why are there only 16 bars per channel?

The tool groups the 256 possible levels into 16 steps of 16, which keeps the chart simple to read. Fine detail between two nearby levels is therefore not visible.

How is luminance worked out?

It is 0.2126 times red plus 0.7152 times green plus 0.0722 times blue, using the values as stored in the image. The same weights appear in the web accessibility definition of relative luminance, which first converts to linear light.

Why is the pixel count smaller than my photo?

The tool scales a copy down so its longest side is at most 512 pixels, and only pixels that are mostly opaque are counted. A large photo therefore reports far fewer pixels than its true size.

Can I rely on this for colour-critical work?

No. It reads your picture through the browser's canvas, which may adjust colours, and it works from a reduced copy. Use it for a quick look at tone, and use dedicated software for print or colour grading.

Hvordan fungerer dette verktøyet?

Velg et bilde. En nedskalert kopi analyseres i denne nettleseren.

Lastes inndataene mine opp?

Nei. Behandlingen skjer i denne nettleseren. Verktøyet laster ikke opp eller lagrer inndataene dine.

Er bildefrekvenshistogrammet gratis å bruke?

Ja. Den er gratis i nettleseren og krever ingen konto. Enhetens minne og nettleserstøtte gjelder fortsatt.

Hvor nøyaktig er resultatet?

Et histogram for et utvalg av skjermvisningen, ikke en fargestyrt måling.