Re:JPEG XL support has officially been removed from Chromium
by supermatt on Saturday December 10, 2022 @12:48PM
(#33934736)
You dont need to replace the img with canvas DOM - you can capture the canvas output as a dataURL.
[ Parent
| on HN ]
Re:JPEG XL support has officially been removed from Chromium
by rezonant on Saturday December 10, 2022 @01:32PM
(#33935279)
Can't reply to the reply to your reply but... Blobs can be used here and avoid the inefficiency of data URL conversions
Re:JPEG XL support has officially been removed from Chromium
by niutech on Monday December 12, 2022 @07:09PM
(#33962486)
This is exactly what I use in my JXL.js, as well as Web Workers and OfflineCanvas.
Re:JPEG XL support has officially been removed from Chromium
by supermatt on Saturday December 10, 2022 @01:38PM
(#33935353)
Thanks for the tip! (Not for jpegXL specifically, but ill definitely check that out and update some code where i use dataURLs instead of objectURLs accordingly)
Re:JPEG XL support has officially been removed from Chromium
by lifthrasiir on Saturday December 10, 2022 @01:05PM
(#33934948)
You can, but that is hugely inefficient. Any additional draw to the canvas has to generate a data URL for the image to be progressively decoded.