Hvorfor viser Chrome og Internet Explorer dette bildet helt annerledes?

Innholdsfortegnelse:

Hvorfor viser Chrome og Internet Explorer dette bildet helt annerledes?
Hvorfor viser Chrome og Internet Explorer dette bildet helt annerledes?

Video: Hvorfor viser Chrome og Internet Explorer dette bildet helt annerledes?

Video: Hvorfor viser Chrome og Internet Explorer dette bildet helt annerledes?
Video: Crack the NMLA’s Network Trail of Torquatus // Elite Dangerous - YouTube 2024, Mars
Anonim
 I et ganske nysgjerrig tilfelle av forvirret identifisere, endrer et bilde av et stykke frukt seg selv basert på hvilken nettleser den vises på. Hva er hemmeligheten bak den optiske illusjonen? Er det en pære, et eple, eller begge deler?
I et ganske nysgjerrig tilfelle av forvirret identifisere, endrer et bilde av et stykke frukt seg selv basert på hvilken nettleser den vises på. Hva er hemmeligheten bak den optiske illusjonen? Er det en pære, et eple, eller begge deler?

Dagens Spørsmål & Svar-sesjon kommer til oss med høflighet av SuperUser-en underavdeling av Stack Exchange, en fellesskapsdrevet gruppering av Q & A-nettsteder.

Spørsmålet

SuperUser leser Ethree skriver:

Check this image out:

On Chrome and Firefox it will show as a pear. Now, try to save it and look at it saved on your desktop. Also, try viewing in safari or IE. It will display as an apple!
On Chrome and Firefox it will show as a pear. Now, try to save it and look at it saved on your desktop. Also, try viewing in safari or IE. It will display as an apple!

Try clicking the image and moving it around, you will notice the apple appears.

I guess my question will be, “why does this happen?”

Hvorfor faktisk? Vi så det som en pære i Chrome, og sikkert, da vi lagret den i nedlastingsmappen, ble den vist som et eple.

Svaret

SuperUser-bidragsyter Matthew gir innsikt i den optiske illusjonen:

The “white” pixels in the apple picture contain the picture of a pear, stored at a much higher intensity, i.e. very bright.

The “black” pixels in the pear picture contain the picture of an apple, stored at a fairly normal intensity, but scaled down to near black with the gamma correction.
The “black” pixels in the pear picture contain the picture of an apple, stored at a fairly normal intensity, but scaled down to near black with the gamma correction.
The image contains a gAMA chunk specifying a file gamma value of 0.02. When displayed without gamma correction, the viewer sees an apple with “white” pixels interspersed, which are actually the pear at its original (high) intensity.
The image contains a gAMA chunk specifying a file gamma value of 0.02. When displayed without gamma correction, the viewer sees an apple with “white” pixels interspersed, which are actually the pear at its original (high) intensity.

When displayed with gamma correction, the viewer sees a colour-corrected pear with “black” pixels which are actually the apple rendered at a much lower gamma value.

Browsers which display the pear are showing the image using the gamma information provided in it, while browsers which display the apple are not using this gamma information.

Med andre ord, respekterer Chrome gamma korreksjonen verdi og Internet Explorer er ikke.

Har du noe å legge til forklaringen? Lyde av i kommentarene. Vil du lese flere svar fra andre tech-savvy Stack Exchange-brukere? Sjekk ut hele diskusjonstråden her.

Anbefalt: