photoviewer icon indicating copy to clipboard operation
photoviewer copied to clipboard

Can not load local image

Open blueror815 opened this issue 7 years ago • 9 comments

I tried to load local image on preview. But failed. It displays only spinner. Can you please tell me the way to load local image? Is this plugin for only loading of remote image?

blueror815 avatar Jun 23 '17 04:06 blueror815

same here!! please help! thank you!

tva77 avatar Jun 29 '17 14:06 tva77

I am able to load local files into <img> tags using the Ionic version of the Cordova WKWebView plugin, but this plugin does not work with the same paths that are used to to load local assets in WKWebView.

MT-- avatar Jul 07 '17 23:07 MT--

Same here. I am trying to load a blob url into the plugin. (E.g. blob:file:///2cf38b4c-1f19-47c1-aa70-29acda514ece) but it is not working. Any idea if this is already possible or not? If not, any idea if and when it is being implemented?

dtaalbers avatar Aug 02 '17 19:08 dtaalbers

I'd like to open a local image with a cdvphotolibrary url like: cdvphotolibrary://photo?photoId=14982%3B%2..... I figure thats not possible either? Has anyone tried?

flogr avatar Aug 25 '17 08:08 flogr

it works fine for me on HTTP or file both but how i can disable screen shot on image viewer time

manojbhardwaj avatar Sep 05 '17 06:09 manojbhardwaj

Im facing same issue. Has anyone solved it? What is the way to write local path in photoviewer input?

lalit-kumar2 avatar Oct 10 '17 06:10 lalit-kumar2

I am facing the same issue. And is it possible to know when would this bug be solved?

mperumalswamy avatar Jul 23 '18 11:07 mperumalswamy

@sarriaroman any info on this? You marked it as bug but here the guy seems like got it to work https://forum.ionicframework.com/t/how-to-link-local-image-with-photo-viewer/93046/9

UPDATE: Just tested out, it works! So don't know why this issue is here

giacomocerquone avatar Oct 11 '18 19:10 giacomocerquone

We were also unable to make it work with local file. We ended up writing our own simple Swift app - https://github.com/SlovakNationalGallery/zoomImage Maybe you find it useful

igor-kamil avatar Sep 10 '19 08:09 igor-kamil