ladybird/Userland/Applications/ImageViewer
Nico Weber 2e2cae26c6 LibGfx+Fallout: Make ImageDecoder return ErrorOr
...from try_create_for_raw_bytes().

If a plugin returns `true` from sniff but then fails when calling
its `create()` method, we now no longer swallow that error.

Allows `image` (and other places in the system) to print a more
actionable error if early image headers are invalid.

(We now no longer try to find another plugin that can also handle
the image.)

Fixes a regression from #20063 / #19893 -- before then, we didn't
do fallible work this early.
2024-03-07 11:20:06 -05:00
..
CMakeLists.txt ImageViewer: Use LibFileSystemAccessClient 2023-03-24 09:38:46 +00:00
main.cpp LibFileSystemAccessClient+Userland: Return file paths as ByteStrings 2024-01-29 23:14:39 +00:00
MainWidget.cpp Userland: Specify margins and spacing in the GUI::Layout constructor 2023-02-18 16:56:56 +00:00
MainWidget.h ImageViewer: Make arrow key shortcuts work 2023-02-16 12:26:41 +00:00
ViewWidget.cpp LibGfx+Fallout: Make ImageDecoder return ErrorOr 2024-03-07 11:20:06 -05:00
ViewWidget.h ImageViewer: Transform the image's dimension accordingly to the metadata 2024-02-21 08:31:17 +00:00