{"id":114,"date":"2021-02-19T07:46:10","date_gmt":"2021-02-19T07:46:10","guid":{"rendered":"http:\/\/simongarrett.uk\/simon\/?page_id=114"},"modified":"2025-05-06T17:28:52","modified_gmt":"2025-05-06T16:28:52","slug":"test-profile-treatment","status":"publish","type":"page","link":"https:\/\/simongarrett.uk\/simon\/colour-management-information\/test-profile-treatment\/","title":{"rendered":"Test profile treatment"},"content":{"rendered":"\n<p>T<em>est page to experiment with WordPress maltreatment of colour information.<\/em><\/p>\n\n\n\n<p>Updated 6th may 2025<\/p>\n\n\n\n<p>This page should render the colour blobs below the same as on the <a href=\"http:\/\/simongarrett.uk\/simon\/colour-management-information\/colour-management-test-page\/\">Colour management test page<\/a>.&nbsp;<\/p>\n\n\n\n<p>Because of the way WordPress works, it may or may not render the same way, depending on the size of the image.<\/p>\n\n\n\n<p>When an image is uploaded to the Media Library, often multiple lower res copies are created:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69f5789c98190&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69f5789c98190\" class=\"wp-block-image size-large is-resized wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"487\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-06-090748-1024x487.png\" alt=\"\" class=\"wp-image-3895\" style=\"width:600px\" srcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-06-090748-1024x487.png 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-06-090748-300x143.png 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-06-090748-768x365.png 768w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-06-090748.png 1424w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>In this case, I uploaded a file &#8220;PrimariesAdobeRGB.jpg&#8221;, which has profile Adobe RGB embedded. This is uploaded unaltered (marked with an arrow) to a location such as &#8220;<a href=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGB.jpg\">http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGB.jpg<\/a>&#8220;. The Media Library also created three lower res versions, shown immediately above. To save space, it removes <em>all<\/em> metadata, including the colour profile from these lower-res versions! These files have no metadata, so browsers will (or should, according to WWW) interpret them as sRGB. So why didn&#8217;t the Media Library convert them to Adobe RGB?????? I could guess, but to write it down would be gross defamation to the WordPress developer team!<\/p>\n\n\n\n<p>The Image Blocks below are displayed with html code like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;img ... src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB.jpg\" ...\n\nsrcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB.jpg 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB-300x200.jpg 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB-768x512.jpg 768w\"\n ...&gt;<\/code><\/pre>\n\n\n\n<p>It gives the source (&#8220;src&#8221; tag) as the original file (with the profile), but with alternatives (&#8220;srcset&#8221; tag) that can be used by the browser, depending on the size of the display window. <em>These alternatives have no profile embedded.<\/em> <\/p>\n\n\n\n<p>What happens depends on the browser.  As of today (6th May 2025) some browsers note the src and srcset tags, and take the metadata and profile from the src= image, even when one of the smaller srcset= images are used.  Microsoft, infamous for its (mis)handling of colour management, seems to get very confused and its Edge browser seems to give up and mis-renders at any image size.<\/p>\n\n\n\n<p>This leaves users a few reliable options for posting images in colour spaces other than sRGB to the a WordPress website:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Manually create &lt;img > tags that explicitly reference the original uploaded image (which has an embedded profile), rather than use Image or other blocks that may uses alternative versions of the image with no profile.<\/li>\n\n\n\n<li>Use a gallery plugin with known good behaviour for colour profiles<\/li>\n\n\n\n<li>Host images on an external service with known good behaviour for colour profiles (e.g. flickr) and use a suitable plugin to embed images from that external service.  <\/li>\n<\/ul>\n\n\n\n<p>Or upload only sRGB images.<\/p>\n\n\n\n<p>sRGB<\/p>\n\n\n\n<figure class=\"wp-block-image alignleft size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGB.jpg\" alt=\"\" class=\"wp-image-55\" style=\"width:400px\" srcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGB.jpg 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGB-300x200.jpg 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGB-768x512.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGBnoProfile.jpg\" alt=\"\" class=\"wp-image-50\" style=\"width:400px\" srcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGBnoProfile.jpg 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGBnoProfile-300x200.jpg 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/Primaries_sRGBnoProfile-768x512.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"clear:both;\"><\/div>\n\n\n\n<p>AdobeRGB<\/p>\n\n\n\n<figure class=\"wp-block-image alignleft size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGB.jpg\" alt=\"\" class=\"wp-image-51\" style=\"width:400px\" srcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGB.jpg 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGB-300x200.jpg 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGB-768x512.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGBnoProfile.jpg\" alt=\"\" class=\"wp-image-52\" style=\"width:400px\" srcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGBnoProfile.jpg 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGBnoProfile-300x200.jpg 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesAdobeRGBnoProfile-768x512.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"clear:both;\"><\/div>\n\n\n\n<p>ProPhoto RGB<\/p>\n\n\n\n<figure class=\"wp-block-image alignleft size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB.jpg\" alt=\"\" class=\"wp-image-53\" style=\"width:400px\" srcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB.jpg 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB-300x200.jpg 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGB-768x512.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"http:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGBnoProfile.jpg\" alt=\"\" class=\"wp-image-54\" style=\"width:400px\" srcset=\"https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGBnoProfile.jpg 1024w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGBnoProfile-300x200.jpg 300w, https:\/\/simongarrett.uk\/simon\/wp-content\/uploads\/2021\/02\/PrimariesProPhotoRGBnoProfile-768x512.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"clear:both;\"><\/div>\n\n\n\n<p>End text<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Test page to experiment with WordPress maltreatment of colour information. Updated 6th may 2025 This page should render the colour blobs below the same as on the Colour management test page.&nbsp; Because of the way WordPress works, it may or may not render the same way, depending on the size of the image. When an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":32,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-114","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/pages\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":16,"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/pages\/114\/revisions"}],"predecessor-version":[{"id":3906,"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/pages\/114\/revisions\/3906"}],"up":[{"embeddable":true,"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/pages\/32"}],"wp:attachment":[{"href":"https:\/\/simongarrett.uk\/simon\/wp-json\/wp\/v2\/media?parent=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}