Use UISaveVideoAtPathToSavedPhotosAlbum and save to custom album - ios

Can I use UISaveVideoAtPathToSavedPhotosAlbum and save to a custom album, say for example to "My App Videos" album?

No, it is saved to Camera Roll Album as stated in the docs.
You can use the code in this tutorial which has a helper classes to easily save images to custom album
http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-category-for-download/

Related

Replace existing images to Photo Album

I am using UIImageWriteToSavedPhotosAlbum() method to save images in photo library.I am calling webservices to get images and saving it in photo library but It is creating copy of images because webservice is calling no. of time.
How can I replace existing images from Photo Library?
Thanks
No you can not, since this will allow you to update user images with their consent.
Apple is very restrictive about these kind of things, just image you are overwriting all the images by adding some banner. There is noway the user can undo this.

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.

Saving a photo from photo library

I have some part of application that save user data like name, address and photo. I have solve problem to take a photo from photo library.
Because that's only small database, I use NSUserDefaults to save data.
But I don't know how to save photo from photo library that I put in UIImageView...
Please give me some help..
Is it possible to use NSUserDefaults to save that photo??
I would consider using NSUserDefaults to store the image name rather than the data. You should be able to retrieve the image from the photo library no problem as long as you have the filename you need.

JW-Player use video thumbnail as featured image

If I upload external media (in particular a Youtube video) for use with the jw-player wordpress plugin... how do i use the thumbnail as my featured image ... so i can show thumbs in say the excerpts that link to the post where the full video is available.
the jw-player plugin seems to save the youtube screenshot as meta data, but the meta data is
associated with the attachment page and not w/ the post i am adding to my blog.
If that is the case, you can use <?php wp_get_attachment_metadata( $post_id, $unfiltered ) ?>. You'll need to look through the returned array to find that image and display it.
http://codex.wordpress.org/Function_Reference/wp_get_attachment_metadata

Resources