diff options
author | Nico Weber <thakis@chromium.org> | 2023-01-22 22:25:44 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-23 12:08:25 +0000 |
commit | 6cfb057430df4a9f92bc29b670a0a72aeb3e839a (patch) | |
tree | b3553da18b7a654bfe64fbb4084a31aedcd00e69 /Userland/Utilities | |
parent | 2bfd09b17300c5b93dd4cf98530f09325f1862e9 (diff) | |
download | serenity-6cfb057430df4a9f92bc29b670a0a72aeb3e839a.zip |
LibGfx+icc: Add ICCProfile support for XYZType and print it
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/icc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Utilities/icc.cpp b/Userland/Utilities/icc.cpp index 0f17ebaea2..7f38fd672c 100644 --- a/Userland/Utilities/icc.cpp +++ b/Userland/Utilities/icc.cpp @@ -110,6 +110,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) out_optional(" macintosh", MUST(text_description.macintosh_description().map([](auto description) { return String::formatted("\"{}\"", description); }))); } else if (tag_data->type() == Gfx::ICC::TextTagData::Type) { outln(" text: \"{}\"", static_cast<Gfx::ICC::TextTagData&>(*tag_data).text()); + } else if (tag_data->type() == Gfx::ICC::XYZTagData::Type) { + for (auto& xyz : static_cast<Gfx::ICC::XYZTagData&>(*tag_data).xyzs()) + outln(" {}", xyz); } }); |