nodeca / pica

Resize image in browser with high quality and high speed
http://nodeca.github.io/pica/demo/
MIT License
3.76k stars 245 forks source link

Corrupted image in Chrome or Opera #211

Closed zdila closed 3 years ago

zdila commented 3 years ago

Please ungzip the attached testcase, open testcase.html in Google Chrome (mine is currently Version 91.0.4472.101 (Official Build) (64-bit) on Debian Linux) and select attached image. After I select it I see it corrupted. I can reproduce it with Pica 7. With the latest Pica 6 it is OK.

testcase.tar.gz

Corrupted result: image

rlidwka commented 3 years ago

This is probably a chrome issue with createImageBitmap, see test case here: cib-test.zip

I've opened a bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=1220671

puzrin commented 3 years ago

Note. Anyway, chrome & FF provide different results. Even when corruption fixed, that will stay unuseable for images with orientation..

rlidwka commented 3 years ago

Fixed by adding feature test for this specific chromium behavior.