photo

Social Plugins for Facebook Photos and Albums

廉价感情. 提交于 2019-12-06 09:53:25
Is it possible to use Social Plugins such as the Comments and Like plugins to display the comments and likes for a photo or album uploaded to Facebook? I have tried various URLs for the HREF attribute (the photo source, the photo page, the graph URL, etc) and cannot get the plugin to display existing comments against the photo. Can someone suggest the correct URL (if any) that I should use? I can get access to the list of comments using the graph API, however I would prefer to make use of the social plugins if possible. Currently you can not use them in that manner. You can use the graph api

Create Image from imageview and textview?

こ雲淡風輕ζ 提交于 2019-12-06 07:30:16
I'm making an app that will allow the user to add a photo to an imageview from the gallery of their phone which I have already been able to code successfully. I now want to be able to allow the user to add text on top of the photo and then save the text and image as one back into the gallery. Is there any way to do this? XML: <LinearLayout android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"> <ImageView android:id="@+id/image" android:layout_height="400dp" android:layout_width="fill

How to update exif of ALAsset without changing the image?

随声附和 提交于 2019-12-06 06:13:24
问题 I use setImageData:metadata:completionBlock: of ALAsset to update the exif(metadata) of an asset. I just want to update the metadata, but this method require an imageData as the first parameter. I use the code below to generate imageData , but it modified my image(I checked the file size and file hash). ALAssetRepresentation *dr = asset.defaultRepresentation; UIImage *image = [UIImage imageWithCGImage:dr.fullResolutionImage scale:dr.scale orientation:dr.orientation]; NSData *data =

In java how can I extract camera related information from an image?

一个人想着一个人 提交于 2019-12-06 03:59:29
问题 I am looking to extract the camera related information from a jpg using Java. I have looked around but have not been able to find a solution to my problem. I am exporting my photos from Aperture on my mac (OS X 10.7) and want to use the data from Aperture that is available in the file info. Any ideas? I am looking to have Dimensions and Key Words extracted from photos like this one: 80.167.88.49/masters/test.html. Currently i get an exception when trying to use the Metadata Extractor. I don't

Face tagging information and photo metadata

青春壹個敷衍的年華 提交于 2019-12-05 23:44:21
问题 Is there a standard way to read/write face-tags from/into photo meta-data? Can I use it to import face-tagging information from popular photo organizers? 回答1: Yes. Metadata Working Group (i.e. Adobe, Microsoft, Sony, Nokia, and others) has developed a standard extension of XMP to do that, see Image Region Metadata Section 5.9 in the Metadata Working Group Spec. Another extension of XMP has been done by Microsoft for Windows Live Photo Gallery and is supported by .NET API. See People Tagging

How to Animate Images while converting to Video

╄→尐↘猪︶ㄣ 提交于 2019-12-05 18:58:22
I want to animate images smoothly while converting them to video. Dispite of searching SO, I am unable to understand how to achive it. I tried changing the Rotation angle(CGAffineTransformRotation), Translations and Scaling but didn't found a way to for the smooth animations. Heres how I am converting array of photos to video : - (void)createVideoWithArrayImages:(NSMutableArray*)images size:(CGSize)size time:(float)time output:(NSURL*)output { //getting a random path NSError *error; AVAssetWriter *videoWriter = [[AVAssetWriter alloc] initWithURL:output fileType:AVFileTypeMPEG4 error: &error];

Use Graph API Explorer to post a photo

主宰稳场 提交于 2019-12-05 18:28:33
My ultimate goal is to do this programmatically, but as a sanity check I'm trying to just post an uploaded photo (from my computer) to a Facebook page using the Facebook Graph API Explorer. I have the access token and photo_upload and publish_stream permissions. I just don't understand what to do to indicate where the photo is. How can I do it? Thanks. I don't think the Graph API explorer tool supports file upload, so you won't be able to use it to check your uploads. Facebook accepts a url param for image uploads - point that to a full image url, and Facebook should pick it up. Since it's

Open camera roll on an exact photo

旧巷老猫 提交于 2019-12-05 12:27:18
I'm developing a camera application where I'd like to put some functions that are already present in the stock app. My problem is replicating the little square in the bottom left corner (in portrait mode) where the micro-thumbnail of the photo that the user has just taken is shown; then, when the user tap on it, the photo app should open, on the last photo saved in the camera roll. I can load the thumbnail of the newest photo in camera roll with ALAssetsLibrary - I've access to it with [UIImage imageWithCGImage:[result thumbnail]] - but even if I have its ALAsset URL, I can't open the photo

Android camera fails to take photo from background service

一个人想着一个人 提交于 2019-12-05 09:53:32
I've implemented a service to take a picture from a background thread, but the photo never gets taken on any of my devices... here is the code (logging output below): public class PhotoCaptureService extends Service { private static final String TAG = "PhotoCaptureService"; @Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); Log.d(TAG, "Starting the PhotoCaptureService"); takePhoto(); } private void takePhoto() { Log.d(TAG, "Preparing to take photo"); Camera camera = null; try { camera = Camera.open(); } catch (RuntimeException e) { Log.e(TAG, "Camera

How to enumerate all photos on iOS 8 using ALAssetsLibrary

半世苍凉 提交于 2019-12-05 04:42:52
iOS 8 broke lots of apps by removing "Camera Roll" from the ALAssetsLibrary enumerating API. I know I can get all photos using the new Photos framework. But my app has a lot of code depending on ALAsset related classes and I need to keep iOS 7 support. Is there a way to enumerate all photos using ALAssetsLibary on iOS 8, without enumerating asset group first? Apple just released 8.0.1 and listed this as a included fix. Might just be best to wait for that. From the 8.0.1 release notes: Fixes an issue that prevented some apps from accessing photos from the Photo Library 来源: https://stackoverflow