GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 5.21.0 - HDR Support · SDWebImage/SDWebImage · Discussion #3800

5.21.0 - HDR Support #3800

dreampiggy started this conversation in General
5.21.0 - HDR Support #3800
@dreampiggy dreampiggy
Feb 24, 2025 · 0 comments
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

dreampiggy
Feb 24, 2025
Maintainer

See all tickets marked for the 5.21.0 release

Features

HDR Decoding

  • Supports HDR decoding on Apple ImageIO coder (avif/heic/jpeg-xl, etc) Support decoding ISO HDR (avif/heic/jpeg-xl, etc) #3778
    • Note: Defaults to always use SDR, if you want HDR decoding, pass SDWebImageContextDecodeToHDR: @(YES) to context option. Pay attention even decoded CGImage is HDR ready, full rendering require display hardware support and per-image-view level control, it's recommended to read WWDC23 and use proper API to check for current display headroom to turn on HDR.
    • Note: Apple ImageIO coder requires macOS 14/iOS 17+ for HDR decoding. For lower firmware you can consider AVIF/HEIF/JPEG-XL third-party codec

HDR Encoding

  • Supports HDR encoding on Apple ImageIO coder Supports HDR encoding on Apple ImageIO coder #3799
    • Note: Defaults to always use SDR, if you want HDR dencoding, pass SDImageCoderEncodeToHDR: @(SDImageHDRTypeISOHDR) for ISO HDR encoding. And SDImageHDRTypeISOGainMap for ISO Gain Map based HDR encoding (like JPEG for compatibility)
    • Note: Apple ImageIO coder requires macOS 15/iOS 18+ for HDR encoding. For lower firmware you can consider AVIF/HEIF/JPEG-XL third-party codec

Transformer

  • Allows user to directly customize preserveImageMetadata for our built-in transformers Allows user to directly customize preserveImageMetadata for our built-in transformers #3796

UI Category

  • Change the default callback queue policy to SafeAsyncMainThread, don't need main queue check at all Change the default callback queue policy to SafeAsyncMainThread, don't need main queue check at all #3797
    • Note: This should make sd_setImageWithURL related UI API to work on case like UICollectionViewDiffableDataSource , which is running on main thread but not main queue.

Fixes

  • fix: sd_colorAtPoint/sd_colorsWithRect should early return when pixel format is not supported fix: sd_colorAtPoint/sd_colorsWithRect should early return when pixel format is not supported #3798
    • Note: In history this may return a wrong color for RGB10/RGB16 pixel format. Now it just return nil, which may supported in the future.

This discussion was created from the release 5.21.0 - HDR Support.
You must be logged in to vote
All reactions

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💬
General
Labels
None yet
1 participant
@dreampiggy
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.