mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-17 00:04:18 +00:00
fix(create): initialize upright image options completely
This commit is contained in:
1 file changed
-1
@@ -81,7 +81,6 @@ fn turned(bytes: &[u8]) -> Option<Vec<u8>> {
|
||||
let opts = craft_image_codecs::DecodeOptions {
|
||||
keep_orientation: false,
|
||||
limits: craft_image_codecs::Limits { max_pixels: MAX_PIXELS, ..Default::default() },
|
||||
..Default::default()
|
||||
};
|
||||
let mut img = craft_image_codecs::decode_as_with(craft_image_codecs::Format::Jpeg, bytes, &opts).ok()?;
|
||||
if let Some((mut dx, mut dy)) = jfif_density_dpi(bytes) {
|
||||
|
||||
Reference in new issue
Block a user