Unlock the Power of HDR on WordPress

Unlocking the power of HDR on WordPress. An image is shown, divided in two. One half is dull, and the other is vibrant and bright, illustrating the difference HDR makes

If you own a smart phone made in 2020 or later, you’re already equipped with a powerful enough camera to capture HDR (High Dynamic Range) photos of people, products and events that can stand out on WordPress. Even better, your phone’s display is built to showcase these vibrant, high-quality images in all their detail. 

In this article, we’ll show you how to elevate the look and feel of your client’s ecommerce, blog, and photography websites using HDR photography – creating a better visual experience that grabs attention.

We strongly recommend viewing this article on a device with a HDR capable display.   Scan the QR code to access this page on your phone.  QR code linking to the HDR in WordPress blog post

HDR Adoption & Market 

6 billion smartphones, 1 billion TVs, and hundreds of thousands of tablets, laptops, and desktop displays can display HDR content. 

Android, iOS, Windows, MacOS and many Linux distros have native HDR support. 

Industry giants Apple, Amazon, Alphabet, Meta, Netflix, Disney and ByteDance are all heavily invested in creating content that showcases the technology. 

With so many devices and ecosystems able to take advantage of deep, inky blacks and searing, bright highlights; it’s time to upgrade the browsing experience for your customers and users.

HDR Image Scaled Image

[SDR vs HDR side by side comparison]

Brief High Dynamic Range Overview 

Most devices can take advantage of HDR, but what exactly is it?  

‘High dynamic range’ is the ratio between the darkest and brightest parts of a scene and is measured in stops

Our eyes can discern up to 14 stops of dynamic range. High quality, non-HDR displays (SDR or Standard Dynamic Range) can show around 9 stops of range. 

As each ‘stop’ is twice as much light as the last, the difference between the 9 stops of older displays and the 14 stops of your eyes is significant! 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Brightness
Stops

Modern HDR displays can display up to 14 stops, matching the light and dark levels that human eyes can discern, and making images and video content appear much more striking and true-to-life. 

There is another aspect to HDR that improves the experience for content consumers: colour.

HDR photograph of restaurant at night time

Colour Spaces & Colour Gamuts 

The photos and videos you’ve used on websites to this point fit within the SDR colour space known as sRGB. This standard was introduced in 1999 as a refined version of the rec.709 standard for broadcast television. 

SDR displays show just over a third of the colours that our eyes are capable of seeing.  

The two main HDR colour gamuts, P3 and rec.2020, both get significantly closer to displaying the full range of colours we can see than SDR displays. 

The P3 colour space shares the white point, gamma curve and blue primary colour of sRGB, but red and green extend further to better represent how our eyes see colour for a more immersive and vibrant experience. 

The established standards for HDR video, Dolby Vision, HLG, HDR10 and HDR10+, all target the superior rec.2020 gamut which provides an even greater breadth of colour than P3. 

Human eye
SDR (sRGB)
HDR (P3)
HDR (Rec. 2020)
% CIE 1931

HDR File Types & Supported Browsers 

The streaming, social media and gaming industries deliver HDR content to their users through established standards, but things are more fragmented when it comes to the web. 

Here are the browsers that support HDR content and file types: 

Chrome Brave Edge Opera Safari
Images
AVIF AVIF AVIF AVIF AVIF
PNG PNG PNG PNG PNG
JPG JPG JPG JPG JPG
HEIF HEIF HEIF HEIF HEIF
HEIC HEIC HEIC HEIC HEIC
Video
MP4 MP4 MP4 MP4 MP4
MOV MOV MOV MOV MOV

At the time of writing, Mozilla is working on HDR support for their Firefox browser

We recommend avoiding HEIF, HEIC and MOV files on your website to ensure compatibility with non-Apple users.

HDR image of a guitar technician working on a Gibson Les Paul

WordPress and HDR 

WordPress is compatible with these image and video file types that support HDR content:

Images
AVIF PNG JPG HEIF HEIC
Video
MP4 MOV

If you sign into your WordPress site using your phone and upload a HDR image without following the steps in the previous section, you’ll be disappointed by the results. 

And if you’ve followed the conversion steps… you’ll still be disappointed! 

This is because WordPress automatically processes high resolution images, creating scaled down versions. You’ll see “-scaled” added to the end of the filename in the Media Library, which confirms the default behaviour is active. 

While this is great for reducing bandwidth, it strips the HDR from your images and leaves them looking lifeless. 

There are two ways to address this: 

  1. Change your theme’s function .php 

One is to change your theme’s functions.php file and add the following code after the opening PHP tag and before any closing tags or return statements: 

// Disable automatic image scaling in WordPress 5.3+ 

add_filter( 'big_image_size_threshold', '__return_false' );

This will stop WordPress from wrecking your images, but you’ll need to be mindful of getting your images down to a reasonable file size before uploading so you don’t slow your page load speeds and potentially degrade the user experience. 

  1. Manually edit images 

The other way is to upload your images and put them on your pages or posts as normal, then use the “Edit as HTML” feature to strip the “-scaled” part out.

Having to repeat this process will eat up a lot of time for each image, so we’d recommend the previous method if you plan to rollout HDR content at scale. 

HDR Business Opportunities 

99%+ of the web uses SDR imagery. Showcasing HDR content will make you stand out: it’s a visible improvement that clients can immediately see the added value of. 

HDR photography, WordPress integration and image optimisation are ideal as premium revenue generators to add to your list of services that your customers in the ecommerce, hospitality, real estate and other visual industries will benefit from. 

Support for HDR is growing on the hardware and software side, and adoption rates increase with every modern mobile phone sale. Building HDR-ready websites ensures your client’s sites look their best now, and into the future. 

Our CDN is designed to handle HDR content with ease, so your clients will enjoy the same blazing fast speeds that they know and love while dazzling their users with cutting edge content. 

HDR image of bar at night time

Final thoughts 

The web is well on the way to becoming a brighter and more colourful place as HDR adoption continues across the hardware and software of mobile, tablet and desktops platforms. 

The process of capturing, editing, exporting and uploading HDR content to websites is a little more complex than a conventional SDR workflow; but the results are stunning, and truly stand out. 

Will you be providing HDR content for your customers or on your own website? Leave a comment below and share your thoughts. 

If you liked this article, check out our WEFCo photography guide

Managed WordPress Hosting
Previous Article

Link Round-Up (005)

Next Article

20iCloud Now Available in Frankfurt

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *