Open FluorescentHallucinogen opened 6 months ago
See also #133 and #128 for further possible performance optimizations.
@rodydavis @guidezpl Could you please take a look? 😉
Hi, I'm not working on this project now, please tag @pennzht @marshallworks instead :)
This pull request moves the extraction of the dominant colors of the image to web worker to avoid heavy work (especially for high resolution images) on the main thread, improving the UI responsiveness. It also use OffscreenCanvas to convert the image to pixel array.
It uses feature-detect for Web Workers and OffscreenCanvas support, and if available, use them.