Is there a way to get all gallery photos paths in iOS?
I dont need to pick and display it, i need only the paths.
Check the recently SO post for getting image URL through ALAssest ..
Upload ALAsset URL images to the server
There is another post,
display image from URL retrieved from ALAsset in iPhone
Related
I want to get my own app images from the NetworkImage but I am not able to figure out where I can upload.
I think you want an Image Host. You can try imbgg.com or imgur.com
In ImgBB, Sign in, upload the images you want and under Embed codes, select Direct Links.
Use these links as URLs in your NetworkImage()
I am looking for the feature just like the Whatsapp has. They have an album named Whatsapp in iPhone Photos app and all the video and photos of whatsapp can be found there.
I have created the album with custom and also able to save image in it, but how can we download video from url directly into the folder ?
So I have a image which I get from my server. I want to save that image locally. I have already considered using Userdefaults or Core Data for this instead, but I want the user to be able to see and view the photos from their photos app. So I have a saved photo which is saved using UIImageWriteToSavedPhotosAlbum. How do I later retrieve that same image in my app? This includes even after the app is closed and relaunched.
Are you using the PHPhotoLibrary framework? If so, you can use PHFetchOptions to fetch the photos that were saved by your application. Enter parameters such as album name to retrieve the photos you have saved.
If you have the url of the image being stored using UIImageWriteToSavedPhotosAlbum then use that url to retrieve that image using FileManager API.
Get image from documents directory swift
phonegap's camera API has this iphone quirk noted:
When destinationType.FILE_URI is used, photos are saved in the application's temporary directory.
details here
and when I load the photo from album, I get imageURI like this
file://localhost/var/folders/sV/sVG0cyUrFvKs6+6I16IO+U+++TI/-Tmp-/photo_007.jpg
and every time I get a different URI for the same photo. Is it possible to get the URI of the original photo file instead of the temporary copy? I need to have the image URI and display multiple photos on the same screen.
Thanks for your help.
Actually it is not possible on iOS as the photos are stored in an area that is not accessible via URL. We need to copy the image to the application specific temp directory so it will be readable by your app.
For example, this is the url to a facebook video thumbnail:
http://vthumb.ak.fbcdn.net/vthumb-ak-sf2p/v10822/239/59/505867356/t505867356_382364037356_272.jpg
There are quite a few obfuscation identifiers in there which prevent me from doing something like taking a video id and making a thumbnail link.
The reason I'd like the thumbnail is to be able to populate a 'navigator' band with the various videos from the app.
Anyway, anyone know of a way to get the video thumbnail url?
find your video id, and this the url of thumbnail https://graph.facebook.com/VIDEO_ID/picture