Files
craft-libs/crates
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 21:38:11 +00:00
…
…
…
2026-11-15 16:23:03 +00:00
…
2026-11-14 17:49:47 +01:00
…
…
…
…
…
2026-11-15 11:38:06 +00:00
…
…
…
…
…
…
…
…
2026-11-15 18:12:18 +00:00
…
…
…
2026-11-15 17:57:27 +00:00
…