push into rec709 before tone-mapping

should produce better colors
This commit is contained in:
Brooke Vibber 2025-09-26 21:39:38 -07:00
commit 7531cca184

View file

@ -345,7 +345,7 @@ function convert( $src, $dest, $options ) {
} }
$filters[] = "scale=w=$scaleWidth:h=$scaleHeight"; $filters[] = "scale=w=$scaleWidth:h=$scaleHeight";
if ( $hdr ) { if ( $hdr ) {
$filters[] = "zscale=t=linear"; $filters[] = "zscale=t=linear:p=709:m=709";
if ( $exposure ) { if ( $exposure ) {
$filters[] = "exposure=$exposure"; $filters[] = "exposure=$exposure";
} }