photos

Uploading photos to Facebook: Adding parameters before executing the newUploadPhotoRequest call gives the 'OAuthException' error

[亡魂溺海] 提交于 2019-12-04 10:14:38
Summary: Trying to post an image, and description on Facebook. If the image URL is null, I use a local drawable default image to upload to photos. To upload the local image, I am using the following code: My code: Request.Callback uploadPhotoRequestCallback = new Request.Callback() { @Override public void onCompleted(Response response) { if (response.getError() != null) { //post error } else{ String uploadResponse = (String) response.getGraphObject().getProperty("id"); if (uploadResponse is valid) { parameters.putString("message", description); } else { //error } } } }; Request request =

How to retrieve photo extension (jpg/png) in iOS 8.0 using Photos API?

眉间皱痕 提交于 2019-12-04 10:09:03
Am trying to get file extension of photos using the new Photos API in iOS 8 but haven't found a way to do so until now. Before iOS 8.0 I would use ALAssetRepresentation to get the file extension like: // Get asset representation from asset ALAssetRepresentation *assetRepresentation = [asset defaultRepresentation]; // Extract file extension from the original file name NSString* fileExt = [[assetRepresentation filename] pathExtension]; Is there any way to get file extension of photos now? PS: I am using new Photos API as I need to access all photos in my photos app, and ALassetsLibrary gives

How do I retrieve the properties of a photo taken on a digital camera using .NET?

北城以北 提交于 2019-12-04 08:39:31
Preferably in VB.Net, but C# is fine, how can I access the extra properties added to a file by my digital camera, like Date Picture Taken , Shutter Speed or Camera Model ? The following article should be helpful. I maintain a library that offers comprehensive support for extracting image metadata from a variety of file formats. https://github.com/drewnoakes/metadata-extractor-dotnet When I built something similar I used this article quite a bit. But basically you're looking for the EXIF data embedded in the image. There are a number of great libraries to extract it for you, if you don't want

Delphi: How to tag photos the way facebook does

混江龙づ霸主 提交于 2019-12-03 21:53:37
I need a way to tag photos in a Delphi desktop application the way Facebook does it. That includes some way to easily add the tags over the people, and then hovering the mouse over the person in the photo to show the tag. The two suggestions in the answer given to: " Delphi Components for Face Identification and Tagging " don't solve this. But I have no idea where to start, and have been unable to find ideas on the web on how to do this. How does Facebook do it? Or maybe there's a component for Delphi that will allow it. What would be the best way to try to implement Facebook-like tagging? p.s

How to connect external camera to iPhone and take/download photos?

匆匆过客 提交于 2019-12-03 16:59:26
I want to connect an external camera to an iPhone (the camera built into the iPhone is inadequate for my needs) and then write an iPhone app that allows me to send a signal to the external camera when I desire to take a picture and then immediately download the taken photo onto my iPhone so that I can send it wirelessly to a server somewhere else. I have a lot of experience with web programming and JS, but I have no experience with iPhone apps, and I'm not sure if what I want to do is even possible. Ideally, if I could get away with coding this in JS and then using Cordova (or something

Uploading photos to instagram, using a script

南笙酒味 提交于 2019-12-03 07:46:17
问题 Is it possible to upload photos from a webpage to Instagram, if so how do you do it? I am wondering how to do this, so I can have a website where people can vote on their favourite photo and the one with most votes will be posted each day! 回答1: You can use this API: https://github.com/mgp25/Instagram-API And here is an example how to upload photo to Instagram: <?php require '../src/Instagram.php'; /////// CONFIG /////// $username = ''; $password = ''; $debug = false; $photo = ''; // path to

How to retrieve PHAsset from UIImagePickerController

牧云@^-^@ 提交于 2019-12-03 05:57:27
I'm trying to retrieve a PHAsset however PHAsset.fetchAssets(withALAssetURLs:options:) is deprecated from iOS 8 so how can I properly retrieve a PHAsset? I had the same the issue, first check permissions and request access: let status = PHPhotoLibrary.authorizationStatus() if status == .notDetermined { PHPhotoLibrary.requestAuthorization({status in }) } Just hook that up to whatever triggers your UIImagePickerController. The delegate call should now include the PHAsset in the userInfo. guard let asset = info[UIImagePickerControllerPHAsset] as? PHAsset Here is my solution: func

How to get large photo URL in one API call?

戏子无情 提交于 2019-12-03 05:28:27
问题 I want to display large photos in my Facebook app's feed view immediately. Is it possible to get the large photo src URL from a stream/feed using one API call? The photo id is returned in the stream/feed and one can of course then supply this photo id in an additional FQL or graph API call to retrieve all the information about that photo. However, is there a way using multi-query or batch calls to get a larger photo src url using one API roundtrip? 回答1: I haven't tried this with stream/feed

Avoiding duplicates when getting pictures with PHAsset

时光总嘲笑我的痴心妄想 提交于 2019-12-03 05:19:12
问题 On iOS 8, I want to get all pictures stored on the device. My problem is that I do get them, but some are present more than once. The PHAsset properties (hidden, mediaSubtypes, etc.) are the same for all pictures, so I can't for example rule out the PHAssetMediaSubtypePhotoHDR subtypes. The only way I found is not adding multiple pictures with the same date, but this is a problem when multiple photos were saved with the same creation date. Does anybody know why I get these duplicates and what

Uploading photos to instagram, using a script

老子叫甜甜 提交于 2019-12-02 21:14:42
Is it possible to upload photos from a webpage to Instagram, if so how do you do it? I am wondering how to do this, so I can have a website where people can vote on their favourite photo and the one with most votes will be posted each day! You can use this API: https://github.com/mgp25/Instagram-API And here is an example how to upload photo to Instagram: <?php require '../src/Instagram.php'; /////// CONFIG /////// $username = ''; $password = ''; $debug = false; $photo = ''; // path to the photo $caption = null; // caption ////////////////////// $i = new Instagram($username, $password, $debug)