niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.63k stars 4.81k forks source link

Library fails to download JPEGs on iOS devices , Page gets refreshed #3181

Open ShanteshSindgi opened 5 months ago

ShanteshSindgi commented 5 months ago

When attempting to download JPEG images using the html2canvas library on iOS devices, the page unexpectedly reloads instead of allowing the image to download. This issue occurs in both Safari and Chrome on iOS, while it works as intended on Android devices and desktop browsers.

Environment:

Device: iphone 14 OS: 17.5.1 Browser: Safari Library Version: 1.4.1

11ogic commented 4 months ago

When attempting to download JPEG images using the html2canvas library on iOS devices, the page unexpectedly reloads instead of allowing the image to download. This issue occurs in both Safari and Chrome on iOS, while it works as intended on Android devices and desktop browsers.

Environment:

Device: iphone 14 OS: 17.5.1 Browser: Safari Library Version: 1.4.1

How did you solve it? this also happened when I used PNG

caddenc commented 1 month ago

Is there any solution to this?