Canvas bug in Chrome using hardware acceleration
elisbyberi opened this issue · comments
Solution
- Turn off Chrome hardware acceleration.
- Or, decode and encode images using JavaScript and/or WebAssembly.
Test case
Chrome 80.0.3987.87 using hardware acceleration.
Ubuntu 14.04 Operating System
AMD Athlon(tm) II X2 220 Processor
GeForce 6150SE nForce 430 Graphic Processor
Result
- It can not create a correct canvas using JavaScript and WebAssembly.
- Using createImageBitmap does work sometimes drawing a blank canvas randomly.
Question
It is not possible to disable hardware acceleration using JavaScript.
Is it possible to avoid use of canvas i.e. decode/encode image without canvas?
Screenshots
Also, it does work as advertised without using "alpha channel".
14.04 is about to eol. Can you try in 18.04?
Also, it does work as advertised without using "alpha channel".
Alpha is specific thing, with side effects, disabled by default. If your primary goal is to resize "jpegs" - don't enable alpha.
Yes, my only goal is to resize jpegs.
Thank you for your quick reply.