Miksi Chrome ja Internet Explorer näyttävät tämän kuvan täysin toisistaan?

Sisällysluettelo:

Miksi Chrome ja Internet Explorer näyttävät tämän kuvan täysin toisistaan?
Miksi Chrome ja Internet Explorer näyttävät tämän kuvan täysin toisistaan?

Video: Miksi Chrome ja Internet Explorer näyttävät tämän kuvan täysin toisistaan?

Video: Miksi Chrome ja Internet Explorer näyttävät tämän kuvan täysin toisistaan?
Video: CS50 2015 - Week 6 - YouTube 2024, Huhtikuu
Anonim
 Melko utelias hämmentyneen tunnisteen tapauksessa kuva hedelmästä muuttuu itse sen perusteella, millä selainella se näkyy. Mikä salaisuus on optisen illuusion takana? Onko se päärynä, omena vai molemmat?
Melko utelias hämmentyneen tunnisteen tapauksessa kuva hedelmästä muuttuu itse sen perusteella, millä selainella se näkyy. Mikä salaisuus on optisen illuusion takana? Onko se päärynä, omena vai molemmat?

Tämän päivän kysymys- ja vastausistunto tulee meihin SuperUserin hyväksi - Stack Exchangein alaosasto, joka on yhteisöllinen Q & A-sivustojen ryhmittely.

Kysymys

SuperUser-lukija Ethree kirjoittaa:

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?”

Miksi todellakin? Näimme sen Chrome-päärynä, ja varmasti, kun tallensimme sen latauskansioon, se näytettiin omena.

Vastaus

SuperUser-avustaja Matthew tarjoaa oivalluksia optiseen illuusioon:

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.

Toisin sanoen, Chrome kunnioittaa gamma-korjausarvoa ja Internet Explorer ei ole.

Onko jokin asia lisättävä selitykseen? Kuulkaa kommentit. Haluatko lukea lisää vastauksia muilta tech-tajuilta Stack Exchange-käyttäjiltä? Katso koko keskusteluketju täältä.

Suositeltava: