stormlion227 / PhotoBrowser.Forms

Full screen image viewer(Xamarin.Forms) that includes "pinch to zoom" and "swipe to dismiss" gestures.
MIT License
76 stars 47 forks source link

No ability to use local images #6

Open Esam-Hossam opened 6 years ago

Esam-Hossam commented 6 years ago

It seems I'm unable to use local images instead of web images, it only accepts absolute web path and I can't find any way to view Images stored in my project

candidodmv commented 5 years ago

I think that you are using relative path, and appears that plugin requires specify absolute. check out this reference to try out create absolute path. https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/files?tabs=vswin good luck

SirLanceLang commented 5 years ago

Even though using File.GetFullPath(fileName) doesnt work with local files.

umerfarooqy commented 4 years ago

Hi i fixed this issue Please use following edited package https://www.nuget.org/packages/PhotoBrowser_Edited.Forms/ Regards

cocoon commented 3 years ago

Official PhotoBrowser

For me the old official PhotoBrowser is working with local images like this:

file:///mnt/sdcard/Download/images/123.JPG

PhotoBrowser_Edited.Forms

The "PhotoBrowser_Edited.Forms" works with

/mnt/sdcard/Download/images/123.JPG

Problems with PhotoBrowser_Edited.Forms BUT it has one problem for me, it creates always new images in the Path "sdcard/Pictures/" with a name like "alconFrescoimagevi(somenumber).xyz".

And then at a point it stops working to load images at all, because it cannot create new ones. One workaround would be to use a timestampt in the filename.

But it is not deleting the files afterwards, so I don't know if there would be a better solution.