Files
craft-libs/crates/image-codecs/tests/it
ljkx 7adcc9a6c2 image-codecs: BMP keeps its resolution in the header's pixels per metre
A BMP stores its resolution in biXPelsPerMeter and biYPelsPerMeter
(BITMAPINFOHEADER and later). The image crate writes 0 there and nothing
read the fields, so a 300 ppi image saved as BMP reopened at 72 ppi and an
opened BMP's resolution was lost (storytold/photocraft#13630).

decode now reads the fields into Metadata::dpi, encode writes
Metadata::dpi into them whatever embed_metadata says, and
caps(Format::Bmp).dpi is true. encode_bmp_indexed_with_dpi is the palette
writer with a resolution; encode_bmp_indexed keeps its signature and output.
2026-11-16 10:05:03 +01:00
..
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:35 -05:00
2026-11-13 00:17:04 -05:00
2026-11-13 00:17:04 -05:00