mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
icc: Print TextTagData contents
This commit is contained in:
parent
ec7a2058a2
commit
3bc70d7aa5
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
outln("tags:");
|
outln("tags:");
|
||||||
profile->for_each_tag([](auto tag_signature, auto tag_data) {
|
profile->for_each_tag([](auto tag_signature, auto tag_data) {
|
||||||
outln("{}: {}, offset {}, size {}", tag_signature, tag_data->type(), tag_data->offset(), tag_data->size());
|
outln("{}: {}, offset {}, size {}", tag_signature, tag_data->type(), tag_data->offset(), tag_data->size());
|
||||||
|
|
||||||
|
if (tag_data->type() == Gfx::ICC::TextTagData::Type) {
|
||||||
|
outln(" text: \"{}\"", static_cast<Gfx::ICC::TextTagData&>(*tag_data).text());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue