mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibGfx+icc: Add ICCProfile support for XYZType and print it
This commit is contained in:
parent
2bfd09b173
commit
6cfb057430
3 changed files with 46 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue