Open gwy15 opened 4 months ago
Thanks for the suggestions and example code!
Your understanding of the goals of the repo is roughly correct, but there are two subtle differences.
writeHEIFRepresentation
function, is a private and undocumented function _for this specific purpose). It's very hard to do fine-grained control on the options on the specific gain maps, among other options. And it's also not guaranteed that this function will work for this purpose in the future.
This repo aims to solve this problem by completely using a set of lower-level documented functions (from WWDC '23) to provide better controllability and reliability to the overall functionality. If you have interest in having more research on that, the readme file may be a good starting point. And thanks again for the comment!
Hello, I was trying to generate an iOS-compatible image from my Lightroom and bump into this repository.
Correct me if I'm wrong, but I think this repository mainly focus on how to generate iOS-compatible image from ISO hdr images generated from softwares like adobe? Well if that's the case here, another repo https://github.com/HCYANG2000/Generate_Apple_HDR_Photos might be a somehow simpler approach to do so.
I tested it on my mac and iPhone and it works great on converting Adobe Lightroom generated avifs with HDR effect to iOS-compatible heic.
here's my modified code that compiles and works as
swift main.swift ./path-to-avif