You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading JPEGs with xobject::image_from in WASM code causes a panic (e.g. image-rs/image#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: image-rs/image#879 (comment)), such as a feature flag?
The text was updated successfully, but these errors were encountered:
stanleydesu
changed the title
Add feature to disable image's rayon for wasm compatibility
Add feature to disable image crate's jpeg-rayon for wasm compatibility
Jan 7, 2022
According to image-rs/image#703 (comment), this issue should no longer occur. @stanleydesu, can you confirm that the issue is resolved?
(I can't reproduce the error, but maybe I'm doing something wrong)
Loading JPEGs with
xobject::image_from
in WASM code causes a panic (e.g. image-rs/image#1496), as there isn't multithreading in WASM now andxobject::image_from
usesimage
, which uses rayon for JPEG loading.Could there be an option in
lopdf
for disablingimage
from using rayon (disabling example: image-rs/image#879 (comment)), such as a feature flag?The text was updated successfully, but these errors were encountered: