mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +00:00
image: Update an error string
We have been able to write .jpg files for a while now.
This commit is contained in:
parent
8a56abf48b
commit
2c40886851
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/nico
Commit: 2c40886851
Pull-request: https://github.com/SerenityOS/serenity/pull/22922
Reviewed-by: https://github.com/LucasChollet ✅
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ static ErrorOr<void> save_image(LoadedImage& image, StringView out_path, bool pp
|
||||||
} else if (out_path.ends_with(".qoi"sv, CaseSensitivity::CaseInsensitive)) {
|
} else if (out_path.ends_with(".qoi"sv, CaseSensitivity::CaseInsensitive)) {
|
||||||
bytes = TRY(Gfx::QOIWriter::encode(*image.bitmap));
|
bytes = TRY(Gfx::QOIWriter::encode(*image.bitmap));
|
||||||
} else {
|
} else {
|
||||||
return Error::from_string_view("can only write .bmp, .png, .ppm, and .qoi"sv);
|
return Error::from_string_view("can only write .bmp, .jpg, .png, .ppm, and .qoi"sv);
|
||||||
}
|
}
|
||||||
TRY(buffered_stream->write_until_depleted(bytes));
|
TRY(buffered_stream->write_until_depleted(bytes));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue