Open cormacrelf opened 5 years ago
The one failure on stable-1.28.0 is because cfg-if
has an edition key in its Cargo.toml, which appears like so:
jpeg-decoder v0.1.16 (/Users/cormac/git/jpeg-decoder)
├── byteorder v1.3.2
└── rayon v1.2.0
├── crossbeam-deque v0.7.1
│ ├── crossbeam-epoch v0.7.2
│ │ ├── arrayvec v0.4.12
│ │ │ └── nodrop v0.1.14
│ │ ├── cfg-if v0.1.10
│ │ ├── crossbeam-utils v0.6.6
│ │ │ ├── cfg-if v0.1.10 (*)
Seems pretty weird to me as I thought the edition flag was stable already. Maybe it's a bad message because using edition = "2018"
wasn't stable until 1.32.
This PR generally looks good to me, though I agree that it should probably either fully decode thumbnail images or just ignore them.
See https://github.com/image-rs/image/issues/1067
Possible improvements
png::PixelDimensions
, which is not really an accurate name because it doesn't represent the size of a pixel, but the density of an image.dbg!()
that the reftest images with JFIF APP0 sections could decode the density information.