7 comments

  • dcrazy2 hours ago
    Given the Safari team has been the major driving force behind support for wide gamut in web browsers (for the very obvious reason that all Apple devices ship with wide-gamut displays), I am extremely suspicious of the author’s assertion that Safari is ignoring an embedded ICC profile while Chrome and Firefox are doing the right thing.<p>I think it’s far more likely that whatever chain of open-source image modification tools the author is using has written out pixel values in a different colorspace than the one named in the embedded ICC profile.<p>But if the author is absolutely confident in their analysis, they are welcome to file a bug report: <a href="https:&#x2F;&#x2F;bugs.webkit.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bugs.webkit.org&#x2F;</a>
    • PaulHoule1 hour ago
      I seem to recall Safari doing the right thing for JPEGs when I was experimenting with publishing red-cyan stereograms [1] where an sRGB (255,0,0) becomes something like (187, 16, 17) on a high gamut display because the sRGB is less saturated than the P3 red. It looks right for a normal photo but for the anaglyph that little bit of blue and green leaks through and makes ghosts. Emedding a P3 profile in JPEG solves the problem. You run into the same problem with print and I ended up addressing those by applying the color profile to the R and L images, doing the anaglyph blend, then attaching the native color profile of the printer -- it probably isn&#x27;t quite right but the colors are always going to be off for an anaglyph anyway and if I go back to that project I&#x27;ll design a color grade that pushes the scene away from pure-red and pure-cyan-spectrum colors.<p>What gets me is that the image he&#x27;s publishing is not really a PNG kind of image.<p>[1] <a href="https:&#x2F;&#x2F;cybereality.com&#x2F;rendepth-red-cyan-anaglyph-filter-optimized-for-stereoscopic-3d-on-lcd-monitors&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cybereality.com&#x2F;rendepth-red-cyan-anaglyph-filter-op...</a> is a write up that didn&#x27;t go as deep as my research
    • culi1 hour ago
      This might be true but I would hope the web standard is defined enough that browsers can also fail in the same way. Regardless of which browser is the most &quot;correct&quot; here
      • dylan6041 hour ago
        &quot;correct&quot; in fail, in the same way across browsers? that&#x27;s hilarious. I forget that throughout the history of the internet the one thing we&#x27;ve been able to depend on is different browsers behaving the same way
        • culi41 minutes ago
          interoperability of web features has never been this good and it&#x27;s only getting better<p><a href="https:&#x2F;&#x2F;wpt.fyi&#x2F;interop-2025" rel="nofollow">https:&#x2F;&#x2F;wpt.fyi&#x2F;interop-2025</a><p>other than the Manifest v3 fiasco, we&#x27;re probably living in the golden age of web interop
    • lr02 hours ago
      You can try. I&#x27;m on Safari Version 18.6 (20621.3.11.11.3) [Seqouia 15.6.1] on my Mac, unsure of the version in my iPhone and iPad, but all of them ignore the ICC profile.
      • alwillis32 minutes ago
        Apple essentially invented color matching on personal computers back in the classic Mac OS days; it&#x27;s hard to believe after all this time, they&#x27;re not dealing with color correctly.<p>The WebKit blog from 2016:<p><i>WebKit color-matches all images on both iOS and macOS. This means that if the image has a color profile, we will make sure the colors in the image are accurately represented on the display, whether it is normal or wide gamut. This is useful since many digital cameras don’t use sRGB in their raw format, so simply interpreting the red, green and blue values as such is unlikely to produce the correct color. Typically, you won’t have to do anything to get this color-matching. Nearly all image processing software allows you to tag an image with a color profile, and many do it by default.</i><p>[1]: <a href="https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;6682&#x2F;improving-color-on-the-web&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;6682&#x2F;improving-color-on-the-web&#x2F;</a>
      • dcrazy2 hours ago
        Again, my suspicion is that you are actually seeing the ICC profile being applied correctly, and it is the pixel values in your image that are incorrect.<p>A good test would be to run a single 100% sRGB red pixel through your image processing pipeline, and then inspecting the resulting PNG file in a hex editor to see what value is encoded.<p>You can also visit this web page to actively test each web browser’s respect for embedded ICC profiles: <a href="https:&#x2F;&#x2F;www.gballard.net&#x2F;psd&#x2F;go_live_page_profile&#x2F;embeddedJPEGprofiles.html#" rel="nofollow">https:&#x2F;&#x2F;www.gballard.net&#x2F;psd&#x2F;go_live_page_profile&#x2F;embeddedJP...</a>
        • mirashii1 hour ago
          Another good test page for the browser: <a href="https:&#x2F;&#x2F;www.color.org&#x2F;version4html.xalter" rel="nofollow">https:&#x2F;&#x2F;www.color.org&#x2F;version4html.xalter</a>
          • danaris59 minutes ago
            Where, for reference, Safari shows an image that matches the first one listed—meaning, at least in theory, that it fully supports ICC profiles.
        • leptons41 minutes ago
          To paraphrase Steve Jobs, &quot;you&#x27;re pixeling it wrong&quot;.
  • perching_aix30 minutes ago
    Something is off about this.<p>&gt; Plot twist; here was never a gAMA chunk to begin with!<p>But I do see a gAMA chunk in the file?<p>&gt; 00 00 00 04 67 41 4d 41 00 03 5b 5e 5c ff 26 78<p>Which decodes to a value of 2.19998. Conversely, I don&#x27;t see any bundled ICC profiles (iCCP chunks).<p>Mind you, I <i>am</i> able to reproduce the different colors, so something is indeed wrong. Chrome (Windows) and the Photos app (MS Store) both present it as a washed out, ghostly image (I wouldn&#x27;t describe it as foggy, as that to me suggests a blur as well, but alas). In contrast, when I open it in MS Paint (the modern, MS Store app version), I do get saturated colors.<p>UPDATE:<p>The gamma chunk does exist, and is wrong. That&#x27;s the author&#x27;s issue.<p>&gt; Aha! Surely this is a gamma correction issue. Chrome must be applying gamma math differently than desktop apps.<p>And so the author was actually correct here, just the wrong way around. The actual gamma stored in the picture is ~2.2, while 0.4545 is the <i>correct</i> value for a typical SDR gAMA chunk (1÷2.2).<p>After hex editing the gAMA chunk to feature 0.4545 instead, the image now renders correctly everywhere for me.<p>The actual difference then is that some apps simply ignored this chunk and just forced 0.4545 anyways.
  • dylan6041 hour ago
    &quot;Chrome was not wrong. it&#x27;s doing proper color management by respecting the embedded ICC profile&quot;<p>That&#x27;s not how color management is meant to work. The color profile tells you how the data is saved. If you are displaying it using a different color profile, then it needs to be converted. Displaying P3 in sRGB is doing it wrong. How can you conclude Chrome &quot;was not wrong&quot;?
    • alwillis27 minutes ago
      &gt; If you are displaying it using a different color profile, then it needs to be converted. Displaying P3 in sRGB is doing it wrong.<p>Correct. What&#x27;s supposed to happen is P3 colors get converted on the fly to the their closest sRGB colors.
  • firefax1 hour ago
    &gt;<i>If you are using Firefox or a Chromium browser (for me Google Chrome 143.0.7499.170), it&#x27;s very likely that you are seeing a very foggy version of the painting, however, if you download the image and open it with your default image viewer (or open it in the Safari browser), you will see the image normally.</i><p>Why does the page 404 when opening the image? Bandwidth issue? Firefox issue? (Yes, the username is a joke - I don&#x27;t work for Firefox I just use it and thought this would be a funny name)<p>they wayback machine doesn&#x27;t have a copy of <a href="https:&#x2F;&#x2F;lr0.org&#x2F;i&#x2F;2025-12-27_18-21-51_screenshot.png" rel="nofollow">https:&#x2F;&#x2F;lr0.org&#x2F;i&#x2F;2025-12-27_18-21-51_screenshot.png</a> or i was going to link to it in the post here usually, i&#x27;d try to balance a blunt reply like this with they wayback version<p>cheers!<p>Edit: <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20251227181428if_&#x2F;https:&#x2F;&#x2F;lr0.org&#x2F;blog&#x2F;i&#x2F;2025-12-27_18-21-51_screenshot.png" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20251227181428if_&#x2F;https:&#x2F;&#x2F;lr0.or...</a>
    • lr01 hour ago
      It was a typo in the url, should have pointed to <a href="https:&#x2F;&#x2F;lr0.org&#x2F;blog&#x2F;i&#x2F;2025-12-27_18-21-51_screenshot.png" rel="nofollow">https:&#x2F;&#x2F;lr0.org&#x2F;blog&#x2F;i&#x2F;2025-12-27_18-21-51_screenshot.png</a> instead. I fixed it, thanks!
      • black3r34 minutes ago
        this picture does show differently in Chrome and Safari, but if I analyze it using the methods you did I arrive at a different result - I don&#x27;t see an iHDR chunk there, instead I see a gAMA chunk and if I remove it with pngcrush it shows normally in Chrome.<p>maybe you linked a different picture?
      • firefax49 minutes ago
        that was quick, i edited the wayback cache of the image in like i lamented i couldn&#x27;t in the orginal, i&#x27;m such a pessimist :-)<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20251227181428if_&#x2F;https:&#x2F;&#x2F;lr0.org&#x2F;blog&#x2F;i&#x2F;2025-12-27_18-21-51_screenshot.png" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20251227181428if_&#x2F;https:&#x2F;&#x2F;lr0.or...</a>
  • garciansmith2 hours ago
    Image looks the same to me in Firefox (Linux) and Falkon as it does in image viewers (Gwenview and GIMP). Which in all cases seems kind of washed out, so I think that&#x27;s the &quot;smoky,&quot; not &quot;normal&quot; image but I&#x27;m not sure.
    • kaelwd1 hour ago
      GIMP asks if I want to keep or convert the color profile but both options look washed out. The only thing that opens it &quot;correctly&quot; for me is MPV.
  • brokensegue2 hours ago
    you can also do this with JPEGs. se my repo <a href="https:&#x2F;&#x2F;github.com&#x2F;derenrich&#x2F;hdr-steganography" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;derenrich&#x2F;hdr-steganography</a>
  • msla1 hour ago
    Ah, so we&#x27;re back to koolefant:<p><a href="https:&#x2F;&#x2F;x42.com&#x2F;koolefant&#x2F;" rel="nofollow">https:&#x2F;&#x2F;x42.com&#x2F;koolefant&#x2F;</a><p>&gt; If you are using Netscape(*) you will probably see the happy cow above. Internet Explorer-users on Windows and Mac, however, will see a dead flat elephant. And this is due to a strange browser-feature.<p>&gt; (*) or MSIE for Solaris<p>Yes, Netscape and MSIE on Solaris. This goes back to the 1990s:<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;19990222144857&#x2F;http:&#x2F;&#x2F;x42.com&#x2F;koolefant&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;19990222144857&#x2F;http:&#x2F;&#x2F;x42.com&#x2F;ko...</a>