最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I save an image to a mobile photo album from a website? - Stack Overflow

programmeradmin8浏览0评论

I'm creating a web mobile app with jQuery, javascript and HTML. My app generates an image (img HTML ponent) and I want to save it on the mobile device's photo album. Is that possible?

Thanks!

I'm creating a web mobile app with jQuery, javascript and HTML. My app generates an image (img HTML ponent) and I want to save it on the mobile device's photo album. Is that possible?

Thanks!

Share Improve this question asked Sep 16, 2013 at 1:14 CarinaPilarCarinaPilar 1,0843 gold badges14 silver badges20 bronze badges 1
  • Think it's successfully answered here: stackoverflow./questions/7951326/… – Anja Commented Mar 12, 2016 at 15:03
Add a ment  | 

2 Answers 2

Reset to default 2

The user would have to save the image themselves. (i.e. in iOS, hold down on the image until they get the save to camera roll button). There is no way for a webapp to save images programmatically.

Web Share API level 2 is required for this. Not available in iOS 14, and is available in Chrome Android/Windows right now.

https://web.dev/web-share/

发布评论

评论列表(0)

  1. 暂无评论