nodeca / pica

Resize image in browser with high quality and high speed

Home Page:http://nodeca.github.io/pica/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Corrupted image in Chrome or Opera

zdila opened this issue · comments

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

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

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

Fixed by adding feature test for this specific chromium behavior.