Pourquoi Chrome et Internet Explorer affichent-ils cette image complètement différemment?

Table des matières:

Pourquoi Chrome et Internet Explorer affichent-ils cette image complètement différemment?
Pourquoi Chrome et Internet Explorer affichent-ils cette image complètement différemment?

Vidéo: Pourquoi Chrome et Internet Explorer affichent-ils cette image complètement différemment?

Vidéo: Pourquoi Chrome et Internet Explorer affichent-ils cette image complètement différemment?
Vidéo: Résoudre problème PC trop lent (disque a 100%) resultat instantanné - YouTube 2024, Peut
Anonim
 Dans un cas assez curieux d’identité confuse, une photo d’un fruit change de lui-même en fonction du navigateur dans lequel elle est affichée. Quel est le secret de l’illusion optique? Est-ce une poire, une pomme ou les deux?
Dans un cas assez curieux d’identité confuse, une photo d’un fruit change de lui-même en fonction du navigateur dans lequel elle est affichée. Quel est le secret de l’illusion optique? Est-ce une poire, une pomme ou les deux?

La séance de questions et réponses d’aujourd’hui nous est offerte par SuperUser, une sous-division de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.

La question

Le lecteur superutilisateur Ethree écrit:

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

Pourquoi vraiment? Nous l'avons vu comme une poire dans Chrome et, bien entendu, lorsque nous l'avons enregistré dans notre dossier de téléchargement, il s'est affiché comme une pomme.

La réponse

Matthew, contributeur à SuperUser, donne un aperçu de l'illusion d'optique:

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.

En d'autres termes, Chrome respecte la valeur de correction gamma et Internet Explorer ne le fait pas.

Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.

Conseillé: