+ 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

11th Jan 2022, 2:53 PM
PARMAR AAYUSH
PARMAR AAYUSH - avatar
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");
11th Jan 2022, 4:01 PM
ODLNT
ODLNT - avatar
0
It's not work brother.
12th Jan 2022, 2:36 AM
PARMAR AAYUSH
PARMAR AAYUSH - avatar