Skip to content

Commit

Permalink
Update crates/resvg/src/image.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
  • Loading branch information
LaurenzV and DJMcNab authored Nov 28, 2024
1 parent d038c60 commit 95fb255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/resvg/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ mod raster_images {
match output_cs {
ColorSpace::RGBA => data,
// `set_output_color_space` is not guaranteed to actually always set the output space
// to RGBA (see https://docs.rs/zune-core/latest/zune_core/options/struct.DecoderOptions.html#method.jpeg_set_out_colorspace).
// to RGBA (its docs say "we do not guarantee the decoder can convert to all colorspaces").
// In particular, it seems like it doesn't work for luma JPEGs,
// so we convert them manually.
ColorSpace::Luma => data
Expand Down

0 comments on commit 95fb255

Please sign in to comment.