You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice, yeah, indeed seems very likely that the PSP simply ignores the gamma block entirely, and thus we should do the same when displaying these. Don't know if there's an option for it for the png reader we use.
Doesn't look like there's a way to override gamma in the simplified API that we use (png_image_begin_read_from_memory). We'd have to switch to using the absolutely awful full API to access the gamma modification functions..
Activity
unknownbrackets commentedon Jan 21, 2023
I tried a quick recompress of the PNG which generated this image (same pixels/RGB values, just adjusted compression):

Looking at the metadata, the gamma value is pretty different. If I remove the gAMA chunk only, it similarly looks better:

I guess probably we should be ignoring the gAMA chunk here? Its current value is 22727, which is what causes things to be darker.
-[Unknown]
hrydgard commentedon Jan 21, 2023
Nice, yeah, indeed seems very likely that the PSP simply ignores the gamma block entirely, and thus we should do the same when displaying these. Don't know if there's an option for it for the png reader we use.
hrydgard commentedon Jan 25, 2023
Doesn't look like there's a way to override gamma in the simplified API that we use (png_image_begin_read_from_memory). We'd have to switch to using the absolutely awful full API to access the gamma modification functions..