Zašto Chrome i Internet Explorer prikazuju ovu sliku potpuno drugačije?

Sadržaj:

Zašto Chrome i Internet Explorer prikazuju ovu sliku potpuno drugačije?
Zašto Chrome i Internet Explorer prikazuju ovu sliku potpuno drugačije?

Video: Zašto Chrome i Internet Explorer prikazuju ovu sliku potpuno drugačije?

Video: Zašto Chrome i Internet Explorer prikazuju ovu sliku potpuno drugačije?
Video: PS3 #2: The Undead - YouTube 2024, Travanj
Anonim
 U prilično neobičnom slučaju zbunjenog prepoznavanja, fotografija dijela voća se mijenja ovisno o tome koji je preglednik prikazan. Koja je tajna iza optičke iluzije? Je li to kruška, jabuka ili oboje?
U prilično neobičnom slučaju zbunjenog prepoznavanja, fotografija dijela voća se mijenja ovisno o tome koji je preglednik prikazan. Koja je tajna iza optičke iluzije? Je li to kruška, jabuka ili oboje?

Današnja pitanja i odgovori nam se javljaju zahvaljujući SuperUseru - podjele Stack Exchange-a, zajednice-driven grupiranja Q & A web stranica.

Pitanje

Čitač SuperUser Ethree piš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?”

Zašto doista? Vidjeli smo to kao kruška u Chromeu i, svakako, kada smo je spremili u našu mapu za preuzimanje, ona se prikazuje kao jabuka.

Odgovor

SuperUser suradnik Matthew nudi uvid u optičku iluziju:

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.

Drugim riječima, Chrome poštuje vrijednost korekcije gama i Internet Explorer nije.

Imate li nešto za objašnjenje? Zvuči u komentarima. Želite li pročitati više odgovora od drugih tehnoloških korisnika Stack Exchangea? Pogledajte ovdje cijelu raspravu.

Preporučeni: