lopdf
lopdf copied to clipboard
Add feature to disable image crate's jpeg-rayon for wasm compatibility
Loading JPEGs with xobject::image_from
in WASM code causes a panic (e.g. https://github.com/image-rs/image/issues/1496), as there isn't multithreading in WASM now and xobject::image_from
uses image
, which uses rayon for JPEG loading.
Could there be an option in lopdf
for disabling image
from using rayon (disabling example: https://github.com/image-rs/image/issues/879#issuecomment-472009104), such as a feature flag?
Yes, PR is welcome