Technical Explainer Camera & Video
Why Do Ultra HDR Photos Look Different in Brightness After Sharing?
Reading the gain map tucked inside a single JPEG
- Level: Beginner
- ~6 min read
- 5 primary sources
An Android Ultra HDR photo stores a standard-display JPEG alongside a gain map that records per-region brightness boosts. If specular reflections or lights look dimmer after sharing, open both the original and the received file on the same device and in the same app. A difference there points to saving or transfer pipelines; if the identical file looks different across apps, inspect display support and settings.
Who this helps
- Smartphone photographers who notice highlights change when sending photos to friends
- Users who want to verify whether editing or sharing preserves Ultra HDR
Decision checklist
- Compare the original file and the shared file on the same screen and in the same viewer app
- Check gain map presence separately from whether an app renders in HDR
If you are choosing a phone for its camera, identify candidate devices from the SoC comparison's device list and test a full photo round-trip in your everyday camera and gallery apps.
View Devices With Dimensity 9400 and Snapdragon 8 EliteYou photograph a cafe at night: in your gallery, the filament of the bulb glows brilliantly, yet in the copy you sent a friend it looks like a flat white circle. The key clue is which file you opened and which app rendered it. How a camera captures backlit and low-light scenes is covered in Smartphone ISP and Capture-Time HDR. Here we trace what happens after you press the shutter, all the way until brightness reaches the screen.
How Does One JPEG Produce Both Standard and HDR Views?
SDR (Standard Dynamic Range) is the brightness range used to display photos on conventional screens. An Ultra HDR JPEG stores a primary image finished for that SDR range. Open it as an ordinary JPEG, and you see the full scene—bulb, table, and all—without needing special support. Ultra HDR format specification (Source 1)
The second embedded image is the gain map. It acts like a map recording how much to change brightness at each position in the primary image. Where something looks white in SDR and how brightly HDR should restore it are separate pieces of information: even if a white plate and a light bulb look similarly white in the primary image, a large gain value over the bulb lets an HDR display render the bulb much brighter than the plate. Gain map and reconstruction formula (Source 1)
- Read the primary image
Load the standard JPEG to get the room's base colors and SDR brightness.
- Match the bulb's location
Look up the gain value recorded for that exact area in the gain map.
- Scale to the display
On screens with less brightness headroom, dial back the boost while keeping local contrast clear.
The format specification gives an example where an image encodes up to 4× brightness boost, but if the display only has 3× headroom available, the applied display boost caps at 3×. That multiplier is relative to SDR white. It does not brighten the entire photo uniformly by 3×; per-pixel scaling still depends on the gain map values. Available display headroom can also vary with ambient lighting and how much of the screen is filled with bright areas. Display boost in the format spec (Source 1)
Inside an Official Sample: How Large Is the Gain Map?
We inspected Android’s official sample image lamps.jpg on a PC. In the file metadata, the auxiliary image type was GainMap with a length of 36,661 bytes. Extracting the trailing JPEG using that byte length and reading both JPEG headers produced the dimensions below. Inspected sample file (Source 5)
| Image Inside the Same File | Width × Height (px) | What It Stores |
|---|---|---|
| Primary image | 4080 × 3072 | Color photograph viewable on standard displays |
| Gain map | 1020 × 768 | Per-position brightness adjustment; 1 channel in this sample |
Because both width and height are one-quarter the primary dimensions, each pixel in this gain map corresponds to a 4 × 4 pixel block of the primary image, while fine photographic detail stays in the primary image. This quarter-scale ratio is not hardcoded by the specification; what Android’s editing guide requires is that the primary image and gain map share the same aspect ratio. Format overview in the edit guide (Source 3)
What to Check First If Editing or Sharing Dims a Photo
-
If you download the shared photo from the recipient side and open it in the sender's same gallery app, does it still look dim?
YesInvestigate whether transfer, recompression, or editing stripped the gain map
Compare file size, resolution, and export settings against the original. -
With the exact same original file, does the glow change when you switch viewer apps?
YesCheck the viewer app's HDR rendering support and the screen's brightness headroom
Always compare using the original photo file rather than a screenshot. -
Does only the area where you placed a sticker or drawing glow unnaturally?
YesCheck whether the app updated the gain map after compositing overlays
Compare versions with and without the sticker side by side on the same screen. If blown highlights or shadow noise appear in the capture itself, review how the ISP and HDR capture pipeline work before the file is saved.
Always compare using the actual photo files instead of screenshots. Android’s display guide explicitly notes that HDR regions in screenshots are tone-mapped for SDR. The table below outlines a controlled check based on the official specification. Android display guide (Source 2)
| Observed Difference | Change Just One Variable | How to Read the Result |
|---|---|---|
| The bulb glowed before sending | Open the re-saved copy from the recipient alongside the original in the sender’s same gallery | If they differ here, trace where editing, exporting, or transmission altered the file |
| Same photo glows differently in grid vs. full-screen view | Open the exact same original file on the same device, changing only the app or screen | The underlying data is identical; check app HDR rendering and display headroom |
| Only an edited overlay glows unnaturally | Compare a version with a sticker over the bulb against the unedited original | If the original bulb’s gain map remains underneath, the sticker can inherit that boost |
The difference between cropping and placing a sticker comes down to spatial correspondence. Supported standard Android Bitmap operations transform the gain map automatically during rotation or cropping. Covering a light bulb with a sticker, however, replaces what sits at those coordinates—so keeping brightness accurate requires updating the corresponding region of the gain map as well. Basic edits vs. overlays in Android’s edit guide (Source 3)
How Developers Verify the File and Display Separately
Starting with Android 14 (API 34), developers can decode the re-saved file into a Bitmap and inspect hasGainmap(). If it returns true before editing and false after exporting, that pipeline did not preserve a readable gain map in the output. Even when both return true, that alone does not verify whether the map values match or whether the window actually rendered in HDR. Android’s official display sample checks for the gain map and then sets COLOR_MODE_HDR on the target window. Bitmap API (Source 4) / Display implementation example (Source 2)
When Choosing a Phone, Test All the Way to Your Sharing Destination
If you are weighing devices like the OnePlus 13 and vivo X200 Pro, use the SoC comparison to organize candidates, then pin down the exact camera, editor, and gallery apps you rely on. The SoC name alone does not tell you whether Ultra HDR survives that full chain. If you can test in store, frame a light source next to a sheet of white paper, keep the original file, send it via your everyday method, and reopen the received file back on the original phone to confirm what your real workflow preserves.
| Chip | Process Node | GPU | Announced |
|---|---|---|---|
| Snapdragon 8 EliteQualcomm Announced | 3nm Source | Qualcomm Adreno Source | 2024-10-21 Source |
| Snapdragon 8 Elite Gen 5Qualcomm Announced | 3nm Source Official generation name; foundry and sub-node details (such as N3P) are not listed. | Qualcomm Adreno Source | 2025-09-24 Source |
| Dimensity 9400MediaTek Announced | 2nd-generation 3nm Source | Arm Immortalis-G925 MC12 Source | 2024-10-09 Source |
| Dimensity 9500MediaTek Announced | N3P Source | Arm Mali-G1 Ultra MC12 Source | 2025-09-22 Source |
For a capture of the iPhone screen, see how to save a PNG screenshot and when HDR display support matters.
Frequently Asked Questions
Can Ultra HDR data stay intact when the file extension is still .jpg?
Yes, it can. Ultra HDR packages both the primary image and the gain map inside a single JPEG file. Because the extension alone cannot tell them apart, inspect the saved file returned from the sharing destination.
If I send a screenshot, will the recipient see the same brightness?
According to Android's official display guide, taking a screenshot converts HDR brightness down for SDR. To compare HDR appearance, send the original photo file and open it on a compatible display and app.
Does cropping an image erase the gain map?
With supported standard Android Bitmap crop operations, the gain map is cropped to match the same region. Check your specific editing app's export behavior separately by reopening the newly saved file.
What is a gain map?
A gain map is an auxiliary image embedded alongside the primary image inside an Ultra HDR JPEG that records how much to adjust brightness at each location. On an HDR-capable display, the system combines this map with the screen's available brightness headroom to make highlights like light bulbs shine brighter than the SDR base image.
Can Ultra HDR photos still be viewed on non-HDR screens?
Yes. Because an Ultra HDR JPEG contains a primary image graded for standard dynamic range (SDR), any standard JPEG viewer can display the photo normally. Extra HDR brightness appears only when both the app and display can read and render the gain map.
Sources & Retrieval Dates
- [1]
- [2]
- [3]
- [4]
- [5]