image: Update an error string

We have been able to write .jpg files for a while now.
This commit is contained in:
Nico Weber 2024-01-24 10:09:22 -05:00 committed by Andreas Kling
parent 8a56abf48b
commit 2c40886851

View file

@ -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));