iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🌠

I Built KIRA-DECO Maker: Create Images That Shine with Ultra HDR Effects

に公開

This is what I created:
https://kurehajime.github.io/kiradeco_maker/?aaa

First, take a look at these three images.

If you thought, "I see what you mean," you are probably reading this article on a smartphone or a laptop, right?
If you thought, "What does that even mean?" you are likely reading this on a desktop PC or an external display.

The second and third images are Ultra HDR images. When viewed in an environment where HDR is enabled, they look like this.


I believe those viewing this article on a smartphone understand, but even with this much explanation, those viewing on a PC probably still don't get it.
Have you ever seen images while browsing the web on your phone that look unnaturally bright, brighter than white? This is one type of that.

What is this?

What are HDR/Ultra HDR?

HDR stands for High Dynamic Range, which refers to images with a wider range of color and brightness expression than normal images.
It can express vivid colors, "blacks blacker than black," and "whites whiter than white."

This time, I created a type of HDR image called Ultra HDR.
Ultra HDR is structured as follows:
Ultra HDR = Standard JPEG image + Gain Map (luminance difference map) + Metadata
In non-HDR environments, it appears as a normal JPEG, while in HDR-compatible environments, it achieves higher expression.

What you can do with this Web application

By drawing with lines or stamps on a specified image, only the parts you drew will shine unnaturally. It is a tool that allows you to "draw with light."

It is hard to explain, so please just try it out.
https://kurehajime.github.io/kiradeco_maker/?aaa

The Pain Points

Although I built it, I am not 100% satisfied with the current state... There are several frustrating points.

The Wall of HDR-Compatible Environments

These images appear as ordinary JPEG images unless you are in an HDR-compatible environment.
If you are on an iPhone or Google Pixel, they will look as intended, but there are many PC environments that do not support them.

If your monitor supports HDR, you can enable it by turning on the HDR setting in your OS.

For Mac:

For Windows:

However, even with HDR-compatible displays, the way they look varies. Especially with external displays, you might only see a subtle difference (that was the case with my LG display).
HDR may also be turned off on HDR-capable devices when they are in power-saving mode.
Conversely, when viewing from a smartphone outdoors, the device's brightness settings increase, which can make it look pitch black by comparison.

The Wall of SNS Posting

Most people now browse the internet on smartphones, especially iPhones, so let's set aside the environment wall for a moment. Next, however, is the SNS wall.
Most social media platforms perform compression when uploading images, which often strips away the HDR information.

I opted for the Ultra HDR format this time, but there are other methods such as "RGBA16bit + iCCP."

I verified both methods and the results were as follows:

Image Format Posting/Viewing on Instagram Posting on Web X Viewing on Web X Posting on iOS App X Viewing on iOS App X
Ultra HDR OK NG NG NG NG
RGBA16bit + iCCP OK OK NG NG OK

Instagram handles HDR images without issue, but to handle HDR images on X, you have to follow the procedure of "posting via Web and viewing on the iOS app" using the "RGBA16bit + iCCP" method. X has different environments for posting and viewing... Furthermore, the behavior of the iOS X app is unstable, as HDR is sometimes disabled after scrolling the screen or displaying a different image.

Example posted using RGBA16bit + iCCP (in the replies):
https://x.com/kurehajime/status/2030474782756712904

...And although I mentioned a few lines ago that "you cannot view images on the web version of X even if you can post them," it seems that while opening the tweet page directly doesn't work, it can be viewed in HDR if embedded...? Hmm, the behavior is quite unclear.

I also prototyped a version of the converter that generates images in RGBA16bit + iCCP. Unlike the Ultra HDR method, which attaches brightness information to the image later, it is difficult to perfectly reproduce the colors of the original image. Combined with the unstable behavior of X, I decided to settle on the Ultra HDR method for now. I might adopt the RGBA16bit + iCCP format in the future if the patterns of its behavior become clearer.

Summary

Regarding the situation with X, I am left with a vague feeling similar to "I don't know. What do you think?" However, it seems useful enough to use on platforms that support it, such as Instagram, or when uploading to your own website.
The embedded images in this article were uploaded to GitHub Pages and embedded using markdown instead of using Zenn's image upload feature ← Even then, the images were being converted, so I embedded them using CodePen instead.

Since I registered for Instagram only to get a discount at an izakaya, I have left my account dormant for a long time and have no influence there. If you are a heavy Instagram user, please use this tool and spread the word.

https://kurehajime.github.io/kiradeco_maker/?aaa

Discussion