mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:52:44 +00:00 
			
		
		
		
	|  701d56f7ad This is enough to make these work:
    for f in VideoHD VideoNTSC VideoPAL; do
        Build/lagom/bin/icc --debug-roundtrip \
            ~/Downloads/Adobe\ ICC\ Profiles\ \(end-user\)/RGB/$f.icc
    done
It's also possible to convert images to those color spaces:
    Build/lagom/bin/image -o image-pal.png \
        --convert-to-color-profile path/to/RGB/VideoPAL.icc \
        image-srgb.png
(If there's no png file with an embedded sRGB profile at hand, do first:
    Build/lagom/bin/icc --reencode-to serenity-sRGB.icc -n sRGB
    Build/lagom/bin/image -o image-srgb.png \
        --assign-color-profile serenity-sRGB.icc image-no-color-space.png
)
In color-managed viewers, images-srgb.png and image-pal.png should
look identical.
But if you either explicitly assign the sRGB profile to the pal
image, or strip the embedded color space, they'll look different
(since image viewers then assume the image in the VideoPAL space
is in sRGB):
    Build/lagom/bin/image -o image-pal-strip.png --strip-color-profile \
        image-pal.png
    Build/lagom/bin/image -o image-not-actually-srgb.png \
        --assign-color-profile serenity-sRGB.icc image-pal.png | ||
|---|---|---|
| .. | ||
| BinaryFormat.h | ||
| BinaryWriter.cpp | ||
| BinaryWriter.h | ||
| DistinctFourCC.h | ||
| Enums.cpp | ||
| Enums.h | ||
| Profile.cpp | ||
| Profile.h | ||
| Tags.cpp | ||
| Tags.h | ||
| TagTypes.cpp | ||
| TagTypes.h | ||
| WellKnownProfiles.cpp | ||
| WellKnownProfiles.h | ||