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
feat(png): add automatic gamma detection from PNG metadata for color-accurate quantization (#152)
* Initial plan
* Initial analysis of PNG quantization color distortion issue
Co-authored-by: Brooooooklyn <[email protected]>
* fix(png): correct gamma handling in PNG quantization to prevent color distortion
Co-authored-by: Brooooooklyn <[email protected]>
* feat(png): add configurable gamma parameter for non-sRGB images in quantization
- Add optional gamma parameter to PngQuantOptions
- Default to 0.45 (sRGB) but allow override for linear RGB (1.0) and other color spaces
- Added comprehensive documentation with common gamma values
- Addresses concern about non-sRGB source images
Co-authored-by: Brooooooklyn <[email protected]>
* feat(png): add automatic gamma detection from PNG metadata in quantization
Co-authored-by: Brooooooklyn <[email protected]>
* feat(png): remove manual gamma override, use only automatic detection
Removed the gamma field from PngQuantOptions struct per feedback from @Brooooooklyn.
Now only uses detect_gamma_from_png_info() for automatic gamma detection from
PNG metadata (sRGB chunk, gAMA chunk, or sRGB fallback).
Co-authored-by: Brooooooklyn <[email protected]>
* remove package-lock.json and add to gitignore
Co-authored-by: Brooooooklyn <[email protected]>
* revert accidental yarn.lock format change and generated files
Co-authored-by: Brooooooklyn <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Brooooooklyn <[email protected]>
0 commit comments