Perché Chrome e Internet Explorer visualizzano questa immagine in modo completamente diverso?

Sommario:

Perché Chrome e Internet Explorer visualizzano questa immagine in modo completamente diverso?
Perché Chrome e Internet Explorer visualizzano questa immagine in modo completamente diverso?

Video: Perché Chrome e Internet Explorer visualizzano questa immagine in modo completamente diverso?

Video: Perché Chrome e Internet Explorer visualizzano questa immagine in modo completamente diverso?
Video: COME AGGIORNARE WINDOWS 7 DOPO LA FINE DEL SUPPORTO - YouTube 2024, Maggio
Anonim
 In un caso piuttosto curioso di identificazione confusa, una foto di un pezzo di frutta si modifica in base a quale browser viene visualizzato. Qual è il segreto dietro l'illusione ottica? È una pera, una mela o entrambi?
In un caso piuttosto curioso di identificazione confusa, una foto di un pezzo di frutta si modifica in base a quale browser viene visualizzato. Qual è il segreto dietro l'illusione ottica? È una pera, una mela o entrambi?

La sessione di domande e risposte di oggi ci viene fornita per gentile concessione di SuperUser, una suddivisione di Stack Exchange, un raggruppamento di domande e risposte basato sulla comunità.

La domanda

Il lettore SuperUser Ethree scrive:

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

Perché davvero? L'abbiamo visto come una pera in Chrome e, abbastanza sicuro, quando lo abbiamo salvato nella nostra cartella dei download visualizzata come una mela.

La risposta

Il collaboratore di SuperUser Matthew offre una panoramica dell'illusione ottica:

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.

In altre parole, Chrome rispetta il valore di correzione gamma e Internet Explorer non lo è.

Hai qualcosa da aggiungere alla spiegazione? Sound off nei commenti. Vuoi leggere più risposte dagli altri utenti di Stack Exchange esperti di tecnologia? Controlla la discussione completa qui.

Consigliato: