Por que o Chrome e o Internet Explorer exibem essa imagem completamente diferente?

Índice:

Por que o Chrome e o Internet Explorer exibem essa imagem completamente diferente?
Por que o Chrome e o Internet Explorer exibem essa imagem completamente diferente?

Vídeo: Por que o Chrome e o Internet Explorer exibem essa imagem completamente diferente?

Vídeo: Por que o Chrome e o Internet Explorer exibem essa imagem completamente diferente?
Vídeo: PowerShell For Beginners Full Course | PowerShell Beginner tutorial Full Course - YouTube 2024, Abril
Anonim
 Em um caso bastante curioso de identificação confusa, uma foto de uma peça de fruta se modifica com base em qual navegador ela é exibida. Qual é o segredo por trás da ilusão de ótica? É uma pêra, uma maçã ou ambos?
Em um caso bastante curioso de identificação confusa, uma foto de uma peça de fruta se modifica com base em qual navegador ela é exibida. Qual é o segredo por trás da ilusão de ótica? É uma pêra, uma maçã ou ambos?

A sessão de perguntas e respostas de hoje nos é oferecida por cortesia do SuperUser, uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.

A questão

Leitor SuperUser Ethree escreve:

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

Por que de fato? Vimos isso como uma pêra no Chrome e, com certeza, quando o salvamos em nossa pasta de downloads, ele era exibido como uma maçã.

A resposta

O colaborador do SuperUser, Matthew, oferece uma visão sobre a ilusão de ótica:

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.

Em outras palavras, o Chrome está respeitando o valor de correção de gama e o Internet Explorer não.

Tem algo a acrescentar à explicação? Soe fora nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.

Recomendado: