photos

Saving a PNG or JPG image to Photos in iOS via PhoneGap

醉酒当歌 提交于 2019-11-30 16:13:39
问题 I am new to PhoneGap and would like to know how to save an in-App image to Photos in iOS. While I was able to use navigator.camera.getPicture with options quality:50, destinationType:Camera.DestinationType.DATA_URL,saveToPhotoAlbum: true to save a picture taken with the camera to Photos, I am now trying to find out how to save an in-App image to Photos. Consider the following PhoneGap - Cordova page where the element myPhoto holds imagedata such as "data:image/jpeg;base64,"... <html> <head>

Google+ photos api [closed]

别说谁变了你拦得住时间么 提交于 2019-11-30 13:28:51
Is there a Google+ photos gdata API? I was using Google picasa API but picasa has a 1 GB limit for photos. I want to upload all my photos using the script which i am writing to Google+ photos. Is there a Google+ photos gdata API? Google+ does not currently have a public photo API. It was accidentally announced at one point but has not been officially announced since. If 1GB is not enough you can pay to increase it . Picasa has a 1GB limit for photos greater than 2048 x 2048 pixels. However, there is no limit to photos which are uploaded under this size limitation. On the other hand, you can

How can I integrate Facebook photo album into website? [duplicate]

可紊 提交于 2019-11-30 11:40:03
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Facebook Api - how to access my photo album How can I display photos from a Facebook album inside a website? 回答1: You can use the graph api to get the images in an album, like this: https://graph.facebook.com/ALBUM_ID/photos You get an array containing all the images in that album. The array contains objects like this: "name": "hopes you're having a great weekend!", "picture": "http://photos-d.ak.fbcdn.net

How to upload multiple photos to Facebook from within iPhone app?

自古美人都是妖i 提交于 2019-11-30 07:46:47
Is there an API call that we can use to upload multiple photos to Facebook from iPhone app? So far we can do only one at a time. You will need to use the Facebook Connect API directly: the iOS SDK does not expose this kind of functionality. You should have a look at the Publishing section of the Graph Photo API which suggests this URL to upload an image (don't forget to ask for the publish_stream credential): POST https://graph.facebook.com/USER_ID/photos message=[optional description] source=[the image's data] place=[optional image's location] With the iOS Facebook Connect SDK that would give

Android Camera - How can i take a specific “rectangle” from the byte array?

て烟熏妆下的殇ゞ 提交于 2019-11-30 07:06:19
I have created an application that shoots and saves photos. I have a preview and an overlay on top of that preview. The overlay defines a square (the area around the square shows the preview a bit darker), as you can see in the image: example What i need to do is to extract the part of the image where the square is. The square is defined like this: Rect frame = new Rect(350,50,450,150); How can i do that? i have the byte array (byte[] data) that i can save, but i want to change the application so that only the square area will be saved. Edit: i have tried the following: int[] pixels = new int

How can I integrate Facebook photo album into website? [duplicate]

别等时光非礼了梦想. 提交于 2019-11-30 00:52:52
Possible Duplicate: Facebook Api - how to access my photo album How can I display photos from a Facebook album inside a website? You can use the graph api to get the images in an album, like this: https://graph.facebook.com/ALBUM_ID/photos You get an array containing all the images in that album. The array contains objects like this: "name": "hopes you're having a great weekend!", "picture": "http://photos-d.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_s.jpg", "source": "http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_n

How to upload multiple photos to Facebook from within iPhone app?

三世轮回 提交于 2019-11-29 10:29:20
问题 Is there an API call that we can use to upload multiple photos to Facebook from iPhone app? So far we can do only one at a time. 回答1: You will need to use the Facebook Connect API directly: the iOS SDK does not expose this kind of functionality. You should have a look at the Publishing section of the Graph Photo API which suggests this URL to upload an image (don't forget to ask for the publish_stream credential): POST https://graph.facebook.com/USER_ID/photos message=[optional description]

Android Camera - How can i take a specific “rectangle” from the byte array?

跟風遠走 提交于 2019-11-29 08:42:56
问题 I have created an application that shoots and saves photos. I have a preview and an overlay on top of that preview. The overlay defines a square (the area around the square shows the preview a bit darker), as you can see in the image: example What i need to do is to extract the part of the image where the square is. The square is defined like this: Rect frame = new Rect(350,50,450,150); How can i do that? i have the byte array (byte[] data) that i can save, but i want to change the

Swift 3: Load photos from Photos/Camera Roll without using UIImagePickerController

你。 提交于 2019-11-29 02:24:46
This question has been asked before but there were no answers for Swift 3. I am looking for the same solution which I am stuck for the past 3 weeks. I have done my research and watched numerous Youtube videos about loading images from Photos/Camera Roll into the app using UIImagePickerController but I want to access the photos without user actions. I want to read a series of photos from camera roll and put them in a photo slide to show them one by one. How can I access these photos without UIImagePickerController? You can use the Photos framework to fetch the photos from CameraRoll/Photos.

Programmatic access to the Photos Library on Mac OS X: PhotoKit / Photos Framework for Mac

不想你离开。 提交于 2019-11-28 09:24:22
In Objective-C, there's a Photos Framework a.k.a. PhotoKit which enables iOS developers to access the photos library on iPhone and iPad and to retrieve the pictures/videos along with their metadata. How would Mac developers perform a similar task? It seems PhotoKit is only available in iOS 8.0. Is there an equivalent of the Photos Framework for Mac OS X? The Media Library Framework is the place to go. Usage: @import MediaLibrary; - (void) awakeFromNib { NSDictionary *options = @{ MLMediaLoadSourceTypesKey: @(MLMediaSourceTypeImage), MLMediaLoadIncludeSourcesKey: @[MLMediaSourcePhotosIdentifier