mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibPDF: Add spec comment about color spaces on images
This commit is contained in:
parent
7c24a89acf
commit
f5d3f47af3
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/f5d3f47af3 Pull-request: https://github.com/SerenityOS/serenity/pull/21507
@ -834,6 +834,8 @@ PDFErrorOr<NonnullRefPtr<Gfx::Bitmap>> Renderer::load_image(NonnullRefPtr<Stream
|
||||
}
|
||||
}
|
||||
|
||||
// "(Required for images, except those that use the JPXDecode filter; not allowed for image masks) [...]
|
||||
// it can be any type of color space except Pattern."
|
||||
auto color_space_object = MUST(image_dict->get_object(m_document, CommonNames::ColorSpace));
|
||||
auto color_space = TRY(get_color_space_from_document(color_space_object));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user