Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, hope you don't mind receiving pull requests from a random user on Github.
I'm using colorist on Linux to generate simple visual reports on HDR images (as a quick way of seeing what parts of the image are out of gamut or overbright). You have a tool that can do this (Vantage), but it appears to rely on some Windows and Mac specific stuff so I couldn't get it running on Linux. Plus I didn't really want / need a GUI for this task. And from my brief testing on Mac, there didn't appear to be any way to save a PNG image to use as a static and easily sharable representation of the image.
Anyway, cribbing heavily from code I found elsewhere in Colorist, I added this capability as a new command,
highlight
. Because it doesn't generate a full report like Vantage it's very fast to run, handling a 4K input file in just a few seconds for me.I'm sending this pull request in case you'd like to add this function to Colorist. I discovered Colorist through a Netflix blog post (which didn't mention it by name), but I suspect many others may do the same and generating static reports like this one with a command line tool seems like a useful function to me.
A follow up commit might print the highlight stats to the terminal. This depends on whether I have time to work on it.