Prečo Chrome a Internet Explorer zobrazujú tento obrázok úplne inak?

Obsah:

Prečo Chrome a Internet Explorer zobrazujú tento obrázok úplne inak?
Prečo Chrome a Internet Explorer zobrazujú tento obrázok úplne inak?

Video: Prečo Chrome a Internet Explorer zobrazujú tento obrázok úplne inak?

Video: Prečo Chrome a Internet Explorer zobrazujú tento obrázok úplne inak?
Video: Intro to Psychology: Crash Course Psychology #1 - YouTube 2024, Apríl
Anonim
 V pomerne zvedavom prípade zmätenej identifikácie sa fotografia kúska ovocia mení podľa toho, v akom prehliadači sa zobrazuje. Čo je tajomstvom optickej ilúzie? Je to hruška, jablko alebo oboje?
V pomerne zvedavom prípade zmätenej identifikácie sa fotografia kúska ovocia mení podľa toho, v akom prehliadači sa zobrazuje. Čo je tajomstvom optickej ilúzie? Je to hruška, jablko alebo oboje?

Dnešná relácia otázok a odpovedí sa k nám pridelí zdvorilosťou SuperUser - podskupiny Stack Exchange, skupín webových stránok týkajúcich sa otázok a odpovedí.

Otázka

Čítačka SuperUser Ethree píše:

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

Prečo skutočne? Videli sme to ako hrušku v prehliadači Chrome a určite sme ju uložili do priečinka na prevzatie, ktorý sa zobrazí ako jablko.

Odpoveď

Príspevok SuperUser Matthew ponúka pohľad na optickú ilúziu:

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ými slovami, Chrome rešpektuje hodnotu korekcie gama a program Internet Explorer nie je.

Máte niečo doplniť vysvetlenie? Zvuk vypnúť v komentároch. Chcete si prečítať viac odpovedí od iných používateľov technológie Stack Exchange? Pozrite sa na celý diskusný príspevok tu.

Odporúča: