mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 22:42:46 +00:00
Avoid needless raster limit update
This commit is contained in:
1 file changed
-1
@@ -36,7 +36,6 @@ pub fn decode_rgba(bytes: &[u8], limits: DecodeLimits) -> Result<RgbaImage, Code
|
||||
max_height: limits.max_height,
|
||||
max_pixels: limits.max_pixels,
|
||||
max_alloc: limits.max_alloc_bytes,
|
||||
..Default::default()
|
||||
};
|
||||
let decoded = craft_image_codecs::decode_with(bytes, &craft_image_codecs::DecodeOptions { limits: decode_limits, ..Default::default() })
|
||||
.map_err(map_codec_error)?;
|
||||
|
||||
Reference in new issue
Block a user