Tại sao Chrome và Internet Explorer hiển thị hình ảnh này hoàn toàn khác?

Mục lục:

Tại sao Chrome và Internet Explorer hiển thị hình ảnh này hoàn toàn khác?
Tại sao Chrome và Internet Explorer hiển thị hình ảnh này hoàn toàn khác?

Video: Tại sao Chrome và Internet Explorer hiển thị hình ảnh này hoàn toàn khác?

Video: Tại sao Chrome và Internet Explorer hiển thị hình ảnh này hoàn toàn khác?
Video: Minimal Windows 10 Install | ISO Creation, Setup, and Config - YouTube 2024, Có thể
Anonim
 Trong một trường hợp khá tò mò của sự nhầm lẫn xác định, một bức ảnh của một miếng trái cây thay đổi chính nó dựa trên những gì trình duyệt nó được hiển thị nó. Bí mật đằng sau ảo tưởng quang học là gì? Nó là quả lê, quả táo hay cả hai?
Trong một trường hợp khá tò mò của sự nhầm lẫn xác định, một bức ảnh của một miếng trái cây thay đổi chính nó dựa trên những gì trình duyệt nó được hiển thị nó. Bí mật đằng sau ảo tưởng quang học là gì? Nó là quả lê, quả táo hay cả hai?

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Câu hỏi

Người đọc siêu người dùng Ethree viết:

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

Tại sao thực sự? Chúng tôi đã xem nó như một quả lê trong Chrome và, đủ chắc chắn, khi chúng tôi lưu nó vào thư mục tải xuống của chúng tôi, nó được hiển thị dưới dạng quả táo.

Câu trả lời

Người đóng góp của SuperUser Matthew cung cấp thông tin chi tiết về ảo ảnh quang học:

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.

Nói cách khác, Chrome đang tôn trọng giá trị hiệu chỉnh gamma và Internet Explorer thì không.

Có cái gì để thêm vào lời giải thích? Âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: