photos

How to get large photo URL in one API call?

匆匆过客 提交于 2019-12-02 18:47:17
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? I haven't tried this with stream/feed photos, but the generally accepted way of doing this is: http://graph.facebook.com/{ID of object}/picture If

Avoiding duplicates when getting pictures with PHAsset

痴心易碎 提交于 2019-12-02 18:36:11
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 I can do to avoid them? This is how I get the pictures: PHFetchOptions *fetchOptions = [PHFetchOptions

Photo stitching/panorama API/DLL/Library anyone?

那年仲夏 提交于 2019-12-02 17:18:14
For a special project, I need to find an API/DLL/Library to help me create a big image using parts of this image. For example, if someone take 4 pictures representing the 360 degrees around him, he will be able to create one big image (panorama) by stitching the 4 images together using special algorithm that recognize some patterns. I know how to do this in Photoshop and I know there are a lot of programs that to this on the internet. But I want one that will be controlled by programming. This can be in C, C++, or .NET. If you have something in another language, you can tell answer too, I may

Error when trying to save a captured image in swift

匆匆过客 提交于 2019-12-02 11:04:53
问题 In my project, I am capturing an image. But when it starts saving the image, app crashes with the error of - "unexpectedly found nil while unwrapping" My code is as follows- // Library Assets var assetCollection: PHAssetCollection! var photoAsset: PHFetchResult! let saveImage = UIImage(CGImage: cgImage, scale: 1, orientation: UIImageOrientation.Down) if let actualSaveImage = saveImage { // Save image PHPhotoLibrary.sharedPhotoLibrary().performChanges({ let request = PHAssetChangeRequest

Get number of images in Photos.app?

一笑奈何 提交于 2019-12-02 09:33:06
问题 I know it's possible to get the images in the Photos.app by using ALAssetsLibrary but how do I get the total number of photos in Photos.app? Pretty much I am trying to check the number of photos because I am getting the last image in the Photos.app with the code from this question: Get last image from Photos.app? So if there's 0 images on the device, it won't execute the code from the link above. Anyway how can I get this? Thanks! 回答1: With the new Photos framework, introduced in iOS 8, you

Error when trying to save a captured image in swift

风流意气都作罢 提交于 2019-12-02 05:13:47
In my project, I am capturing an image. But when it starts saving the image, app crashes with the error of - "unexpectedly found nil while unwrapping" My code is as follows- // Library Assets var assetCollection: PHAssetCollection! var photoAsset: PHFetchResult! let saveImage = UIImage(CGImage: cgImage, scale: 1, orientation: UIImageOrientation.Down) if let actualSaveImage = saveImage { // Save image PHPhotoLibrary.sharedPhotoLibrary().performChanges({ let request = PHAssetChangeRequest.creationRequestForAssetFromImage(actualSaveImage) let assetPlaceholder = request.placeholderForCreatedAsset

How do I prevent people from stealing photos from my website?

為{幸葍}努か 提交于 2019-12-02 03:30:24
问题 I am designing a photography website for a client. The client requested that I make sure no-one "steals" her photos from the website. As far as I know there is absolutely no way to do this reliably. Obviously disabling right click with JavaScript is very easy to get around. Even creating the website in Flash does not solve the problem because anyone can just take a screen-shot and easily get anything they can see on the screen. Short of putting a watermark or logo on each picture, is there

How do I prevent people from stealing photos from my website?

旧街凉风 提交于 2019-12-02 02:45:01
I am designing a photography website for a client. The client requested that I make sure no-one "steals" her photos from the website. As far as I know there is absolutely no way to do this reliably. Obviously disabling right click with JavaScript is very easy to get around. Even creating the website in Flash does not solve the problem because anyone can just take a screen-shot and easily get anything they can see on the screen. Short of putting a watermark or logo on each picture, is there any way to make sure no-one takes pictures off the site? I am pretty sure your only options that do

Android: Duplicate photo storage in DCIM folder

喜你入骨 提交于 2019-12-01 13:11:33
I am using the native Android camera and save files to a application data folder (/mnt/sdcard/Pictures/). At the same time - on some devices - another copy of photo is saved to DCIM folder. This is my code: private void startStockCameraForResult() { // create Intent to take a picture and return control to the calling application Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // mediaStorageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); mNextImageFileUri = ImageFileUtils.getOutputMediaFileUri(); intent.putExtra(MediaStore.EXTRA_OUTPUT,