PhotoBrowser.Forms icon indicating copy to clipboard operation
PhotoBrowser.Forms copied to clipboard

No ability to use local images

Open Esam-Hossam opened this issue 6 years ago • 4 comments

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

Esam-Hossam avatar Jun 19 '18 11:06 Esam-Hossam

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

candidodmv avatar Jul 17 '18 14:07 candidodmv

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

SirLanceLang avatar Sep 20 '18 00:09 SirLanceLang

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

umerfarooqy avatar Jan 07 '20 05:01 umerfarooqy

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.

cocoon avatar Aug 31 '20 15:08 cocoon