Resizing from <img> element results in broken output in Chrome 81
See original GitHub issueHi. First of all - many thanks for that library!
We’ve been using it quite a lot but recently faced several images that result in broken output when using Chrome and <img>
element as source.
If used in Firefox - everything’s fine.
If used in Chrome with <canvas>
element as source (without any transformation, just drawing image) - everything’s fine. Options and features don’t affect this.
Original image (one of) - https://dl.dropboxusercontent.com/1/view/zjnu3kgtyzq6zv3/pica/original.jpg
Corrupted result (<img>
source) - https://dl.dropboxusercontent.com/1/view/c6s817ypu7uibgi/pica/from image.png
Correct result (<canvas>
source) - https://dl.dropboxusercontent.com/1/view/kh4cisii050o4gn/pica/from canvas.png
Playground for testing - https://codepen.io/msidorov/full/PoPdVjV
All these were taken from Chrome 81, different OSes
Many thanks in advance.
Issue Analytics
- State:
- Created 3 years ago
- Comments:28 (25 by maintainers)
@puzrin - yep, missed that. Regarding API itself - I’m not the best match to describe because I already solved issues manually but from what I see that could be really useful for someone else who faces same problem I had.
https://github.com/nodeca/image-blob-reduce - released.