mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 10:36:24 +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
|
@ -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)) {
|
||||
bytes = TRY(Gfx::QOIWriter::encode(*image.bitmap));
|
||||
} 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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue