Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
188 views
in Technique[技术] by (71.8m points)

How to open form input images on default image viewer of an operating system in javascript?

Are there any ways to open an image which has been uploaded by <input type="file" /> , through the default image viewer of an operating system in the client side using plain javascript. ? I went through several resources but did not get a proper answer for this problem.

Here is what I am trying to achieve... This is for a completely client sided application without any backend. The user uploads few image files through html file input. I want the user to open the images he uploaded through the default image viewer of his OS. If user is using android, it should be opened through google photos or whatever user has selected default. If user is using Windows OS, it should be opened through windows photo viewer or something he has selected default. Likewise user should be able to open the image through their default photo viewer in their respective operating system in the device?

Are there any APIs or libraries for this approach? Only if there are no any solutions, are there any other better approaches to achieve this effect?

question from:https://stackoverflow.com/questions/66051084/how-to-open-form-input-images-on-default-image-viewer-of-an-operating-system-in

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...