Защо Chrome и Internet Explorer показват изображението напълно различно?

Съдържание:

Защо Chrome и Internet Explorer показват изображението напълно различно?
Защо Chrome и Internet Explorer показват изображението напълно различно?

Видео: Защо Chrome и Internet Explorer показват изображението напълно различно?

Видео: Защо Chrome и Internet Explorer показват изображението напълно различно?
Видео: ОРХИДЕИ В ПУСТОЙ ВАЗЕ - ЛАЙФХАКИ, ТОНКОСТИ И ОШИБКИ СОДЕРЖАНИЯ, ПЕРЕВОДА И ЩАДЯЩЕЙ АДАПТАЦИИ В ОС! - YouTube 2024, Април
Anonim
 В доста любопитен случай на объркана идентификация, снимка на парче плод се променя въз основа на браузъра, на който се показва. Каква е тайната зад оптичната илюзия? Дали това е круша, ябълка или и двете?
В доста любопитен случай на объркана идентификация, снимка на парче плод се променя въз основа на браузъра, на който се показва. Каква е тайната зад оптичната илюзия? Дали това е круша, ябълка или и двете?

Днешната сесия за въпроси и отговори ни идва с любезното съдействие на SuperUser - подразделение на Stack Exchange - обединяване на уеб сайтове с въпроси и отговори.

Въпроса

Reader на SuperUser Ethree пише:

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

Защо наистина? Видяхме го като круша в Chrome и със сигурност, когато го запазихме в папката за изтегляния, която се показва като ябълка.

Отговорът

Contributor на SuperUser Matthew предлага поглед върху оптичната илюзия:

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.

С други думи, Chrome спазва стойността за корекция на гама, а Internet Explorer не е така.

Имате ли нещо, което да добавите към обяснението? Звучи в коментарите. Искате ли да прочетете повече отговори от други потребители на Stack Exchange? Вижте цялата тема на дискусията тук.

Препоръчано: