get album images directly - ios

I am using AGImagePickerController for selecting the multiple images at a time and get their information. It is working fine. But I also want that when I click on any album, I get that album images data without going to its detail page.
In
self.assetsGroups..:(
"ALAssetsGroup - Name:Saved Photos, Type:Saved Photos, Assets count:2"
)
I am getting Album info but don't know how to get its images without open album detail page. If anyone know how to get it please help me out.
Thanks in advance.

Related

BSImagePickerViewController for selecting videos from gallery in swift

How to get videos from gallery using BSImagePickerViewController. I am already using it for selecting and fetching multiple images from gallery. But can it be used for videos also. No help found from google so far, already spend a day. Please guide.
Just looked around and found this
https://github.com/mikaoj/BSImagePicker/issues/65
Seem like BSImagePicker does not support Video for now. You can use other library to pick both videos and pictures:
https://github.com/guillermomuntaner/GMImagePicker
https://github.com/zhangao0086/DKImagePickerController
I didn't use it before, but hope it can help you.

how to get remote service videos thumbnails for ios in appcelerator?

I am developing ios app in appcelerator studios .In that app i need to show thumbnails of remote service videos . I am getting videos data through JSON object. I am getting thumbnails for only one video rest of them also i am getting but those are append to first video of the JSON object.
can any one help me how to show thumbnails for remote located videos ?
Thanks in advance.
I'm not sure if I fully get your question, but from your title I take that you want to generate thumbnails for remove videos?
For this you can use the following API:
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.VideoPlayer-method-requestThumbnailImagesAtTimes
This does mean that you have to load in every single video (the view itself does not need to be visible to the user) which is quite heavy. So if at all possible it is better to get them from wherever you get the videos from, or use some middleware to generate and cache them there.

Can I access the pictures of the app user?

I am building a game related with the picture of the client from his album.
I need him to authorize access his album, but can I use his pictures?
For example, imagine a game of finding errors. I use one of his pictures in my app, change 7 objects, and ask him to find the changes.
Is it possible?
The user will be able to give you access to their pictures. But in terms of identifying objects in the picture and making changes to them, you will have to code in some pretty advanced image processing functionality.

photo album for Mobile

I have to make a photo album for my mobile app.I am getting the images for photo album from local database using ajax call.I have used many of 'jquery mobile' plugin for it.but any one is not working.
so any one have good example and solution for it, please suggest me.
Thank's
What is the real advantage of using Ajax in a mobile photo-album?
Anyway I found some photogalleries (one or 2 not based on jquery-mobile):
http://tympanus.net/codrops/2010/05/27/awesome-mobile-image-gallery-web-app/
http://neteye.github.com/touch-gallery.html
http://www.photoswipe.com/
http://www.digicrafts.com.hk/components/JSMobilePhotoAlbum
Alternatively you can:
1. create the albums as list items.
2. in album view show thumbnails of photos
3. Click on thumbnail = show photo in fullscreen with a back button.
Good luck :)

ALAsset Unique identifier

I want to duplicate an image from the Photo Library but I want to check in the future if I already have imported this image.
Immagine this scenario.
I have a photo in my Photo Library.
I import it in my app by making a copy of it.
I remove this photo from my library.
At a later time I reinsert this picture to my photo library (Same photo from iPhoto, just didn't synch it's album before and I have now)
Is there a unique identifier that I can use to compare the two pictures? is the URL unique?
Or do I have to look into the metadata and try to match it?
If so, what would you suggest? Created Data and location? Just created Date? Size?
Thanks for your advice.
Observations
I've been working with similar functionality, so this is what I know:
Each photo inserted into the photo library will have a unique URL (this means if you insert an image, delete it, then insert it again, even if it is the same image, it will have a new URL).
There is no straight forward way of knowing whether an image is a duplicate of a previous image or not.
I don't think you are trying to do this, but I will warn you that you cannot delete an image programmatically from the iPhone Photo library.
Solutions
I really only have one way of handling this: Create a hash of the photo and store the hash somewhere. If the photo inserted is the exact same photo as before, it should give you the same hash. You can use that hash comparison to determine if you are using the same photo or not. This is the method that I am using and it seems to work reliably for the most part. I have noticed some discrepancies, but these usually involve my work hashing the files before they are added to the photo library (I have noticed that the saved photo can be different from the photo that is being saved).
I hope this information helps. Let me know if I've missed anything or you notice different results in your work.

Resources