mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 15:55:14 +00:00
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.
43 lines
682 B
Rust
43 lines
682 B
Rust
//! The crate's integration tests, linked into one test binary.
|
|
|
|
mod bmp_resolution;
|
|
mod camera_raw;
|
|
mod common;
|
|
mod dds;
|
|
mod dds_write;
|
|
mod decode_warnings;
|
|
mod deep_exr;
|
|
mod detect_caps;
|
|
mod dpx;
|
|
mod exr_cryptomatte;
|
|
mod exr_multipart;
|
|
mod exr_stream;
|
|
mod fidelity;
|
|
mod gif_frames;
|
|
mod heif;
|
|
mod jpeg_inks;
|
|
mod jpegls_oracle;
|
|
mod limits;
|
|
mod malformed;
|
|
mod metadata;
|
|
mod orientation;
|
|
mod pcx;
|
|
mod png_jpeg;
|
|
mod pnm_headers;
|
|
mod resolution;
|
|
mod roundtrip;
|
|
mod source_settings;
|
|
mod tga;
|
|
mod tiff_bands;
|
|
mod tiff_bench;
|
|
mod tiff_exif;
|
|
mod tiff_lab;
|
|
mod tiff_pages;
|
|
mod tiff_photoshop;
|
|
mod tiff_pyramid;
|
|
mod tiff_regressions;
|
|
mod tiff_ycbcr;
|
|
mod webp_frames;
|
|
mod webp_lossy;
|
|
mod xpm;
|