+ 1
Solve my code webp format
Its working but download button not work properly images download but when i open it show blank screen https://code.sololearn.com/W09328MANH52/?ref=app https://code.sololearn.com/W09328MANH52/?ref=app
2 odpowiedzi
+ 1
In the function aayush, a new canvas is created and nothing is drawn on the canvas so canvas.dataURL() returns data representing a blank canvas.
Hence the blank screen.
At line 118 you can replace canvas.toDataURL("image/png") with Wimage.src
link.href = Wimage.src.replace("image/png", "image/octet-stream");
0
It's not work brother.