為什麼chrome和internetexplorer的顯示方式完全不同?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。...

為什麼chrome和internetexplorer的顯示方式完全不同? In a rather curious case of confused identify, a photo of a piece of fruit changes itself based on what browser it is displayed it. What’s the secret behind the optical illusion? Is it a pear, an apple, or both?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀取器Ethree寫入:

Check this image out:

007Ys3FFgy1gpg61c5ldsj306y06y3yt

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中看到它是一個梨,當我們將它儲存到下載資料夾時,它顯示為一個蘋果。

答案

超級使用者貢獻者Matthew提供了對視錯覺的洞察:

The “white” pixels in the apple picture contain the picture of a pear, stored at a much higher intensity, i.e. very bright.

007Ys3FFgy1gpg61ctn6rj30e007274n

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.

007Ys3FFgy1gpg61ef06gj30dz071jrt

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尊重gamma校正值,而internetexplorer不尊重。


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 22:18
  • 閱讀 ( 25 )
  • 分類:網際網路

你可能感興趣的文章

internet explorer 11(internet explorer 11)和谷歌chrome 39(google chrome 39)的區別

...和谷歌Chrome 39這兩種流行瀏覽器的最新版本之間的區別。internetexplorer是微軟的專有網路瀏覽器,它的歷史可以追溯到1995年。然而,谷歌的Chrome瀏覽器是幾年前在2008年釋出的。儘管現在已經有了歷史,但Chrome已經佔據了瀏覽器普...

  • 發佈於 2020-10-27 20:52
  • 閲讀 ( 47 )

microsoft edge的5大問題

...、將網站固定到工作列以及編輯書籤的URL。2013年釋出的InternetExplorer11擁有這三項功能。 ...

  • 發佈於 2021-03-12 11:51
  • 閲讀 ( 38 )

適用於windows的最佳web瀏覽器

...置的電池使用量排行榜上名列前茅。隨著windows10的推出,internetexplorer的替代品在瀏覽器效率和電池容量測試方面一直優於Chrome、Opera和Firefox。在這一特定領域,微軟正在收穫從頭開始構建Edge的回報,消除了internetexplorer中的許多...

  • 發佈於 2021-03-14 20:40
  • 閲讀 ( 53 )

google透過隱藏子域名來威脅你的網際網路安全

... 為什麼谷歌不應該刪除子域? ...

  • 發佈於 2021-03-23 18:19
  • 閲讀 ( 49 )

什麼是vbscript,微軟為什麼要扼殺它?

...ndows更新之後,預設情況下,在所有受支援的Windows版本的internetexplorer中禁用VBScript。但是VBScript已經消失了很多年。 再見,vbscript! 2019年8月13日,微軟透過補丁更新在Windows7、8和8.1系統的Internet Explorer中預設禁用了VBScript。微...

  • 發佈於 2021-04-03 06:01
  • 閲讀 ( 45 )

這個本地應用程式可能只是一箇舊的web瀏覽器

...許多方面都比以前有所改進。在採用CEF之前,Steam嵌入了internetexplorer。Windows上的許多應用程式也只是簡單地嵌入了internetexplorer介面,而使用Chromium就更好了。 pwas可以提供一條出路 Electron、CEF和類似的技術有很多優點,但也有...

  • 發佈於 2021-04-03 06:23
  • 閲讀 ( 51 )

為什麼我從chrome切換到firefox quantum

從FirefoxQuantum正式釋出前開始,我已經連續使用了一個多星期了。多年來,我覺得每一個Firefox版本都比Chrome慢。但是火狐現在又是一個真正的、快速的、現代的選擇。足夠讓我從Chrome切換回Firefox。 當然,很高興Firefox處於劣勢...

  • 發佈於 2021-04-07 02:08
  • 閲讀 ( 53 )

如何在windows上使用64位web瀏覽器

...單中看到兩種不同的快捷方式。其中一個簡單地命名為“internetexplorer”,它啟動了32位版本。另一個快捷方式名為“Internet Explorer(64位)”,它啟動64位版本。 在windows7時代,瀏覽器使用傳統的NPAPI和ActiveX瀏覽器外掛,而這些...

  • 發佈於 2021-04-08 02:42
  • 閲讀 ( 45 )

微軟edge真的比chrome或firefox更安全嗎?

...需要了解SmartScreen是如何工作的。Microsoft SmartScreen最初在InternetExplorer7中作為“釣魚過濾器”引入,此後在每個版本中都進行了改進。Chrome和Firefox也有類似的警告,但並不像Edge中的亮紅色頁面。這些特性根據已知的好專案和壞專...

  • 發佈於 2021-04-08 10:21
  • 閲讀 ( 54 )

如何在瀏覽器中開啟特定網頁的新選項卡

...白了。 我們將向您展示如何在Google Chrome、Mozilla Firefox、internetexplorer、Opera和Safari中開啟特定網頁的新選項卡。因為我們喜歡使用Google來搜尋web,而這正是我們在新選項卡上經常做的事情,所以在我們的示例中,我們將googleadvance...

  • 發佈於 2021-04-08 17:11
  • 閲讀 ( 67 )
csog4301
csog4301

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦