Questions tagged [photo]
A picture created by projecting an image onto a photosensitive surface such as a chemically treated plate or film, CCD receptor, etc.
photo
2,957
questions
314
votes
35
answers
189k
views
Adding images or videos to iPhone Simulator
I am trying to use UIImagePickerController with UIImagePickerControllerSourceTypePhotoLibrary, but it says, "No photos". Where does the simulator get the images from? Where should I copy the images so ...
96
votes
17
answers
279k
views
open cv error: (-215) scn == 3 || scn == 4 in function cvtColor
I'm currently in Ubuntu 14.04, using python 2.7 and cv2.
When I run this code:
import numpy as np
import cv2
img = cv2.imread('2015-05-27-191152.jpg',0)
gray = cv2.cvtColor(img, cv2....
55
votes
13
answers
27k
views
Get last image from Photos.app?
I have seen other apps do it where you can import the last photo from the Photos app for quick use but as far as I know, I only know how to get A image and not the last (most recent one). Can anyone ...
39
votes
6
answers
51k
views
How to get large photo URL in one API call?
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/...
36
votes
2
answers
41k
views
Fast way of getting the dominant color of an image
I have a question about how to get the dominant color of an image (a photo). I thought of this algorithm: loop through all pixels and get their color, either red, green, yellow, orange, blue, magenta, ...
34
votes
6
answers
77k
views
HTML : Is there any way to show images in a textarea?
So I want to show image thumbnails too in the <textarea> along with text. If you know a javascript solution that's perfect too(if possible in vanilla JS).
Like this:
__________________
|Hello ...
33
votes
10
answers
50k
views
How to save an image to the photo gallery using Flutter?
My flutter app uses the camera package to take a photo, which I save to the application's data directory (obtained from path_provider and the getApplicationDocumentsDirectory() function).
How can I ...
30
votes
4
answers
14k
views
How to make my iOS app visible in photo sharing options like Facebook and Twitter?
I have a picture sharing app which shares pictures among your app friends.
My requirement is to show my app in sharing via pop-up, when iOS user choose any photo from photo gallery.
I found solutions ...
29
votes
6
answers
55k
views
iOS taking photo programmatically
I know this is possible, saw this in some apps (iGotYa is I believe the most famous).
I know how to set up everything for taking photos, saving it and everything.
But how can it be done ...
28
votes
2
answers
58k
views
Error: Not a constant expression in Flutter
I using the demo from this library and it works perfectly.
But when I implement in my project, I get error on this line
Error: Not a constant expression. const
AssetImage(snapshot.data[index]),
...
27
votes
3
answers
28k
views
Exif data TAG_ORIENTATION always 0
I need to know the orientation of an image from the gallery (taken by the camera). My initial approach was to use MediaStore.Images.Media.ORIENTATION which was working for my Droid 1. While testing on ...
26
votes
4
answers
4k
views
photo alignment with graph in r
First I thought I need to it manually in powerpoint, then I thought may be try with R, if there is a solution. Here is my example data:
set.seed(123)
myd<- expand.grid('cat' = LETTERS[1:5], 'cond'=...
25
votes
6
answers
28k
views
Can I set a users profile image using the Facebook API?
I'm looking for a user.setImage call or something to that effect on the Facebook API but I can't see anything to achieve this: specifically to overwrite a user's profile image (not just post an image ...
24
votes
2
answers
37k
views
How can I resize an image file uploaded with Django using an ImageField Model? [closed]
What is the most straightforward method to resize an image file uploaded via a Django form as an ImageField?
23
votes
8
answers
66k
views
Can I take a photo in Unity using the device's camera?
I'm entirely unfamiliar with Unity3D's more complex feature set and am curious if it has the capability to take a picture and then manipulate it. Specifically my desire is to have the user take a ...
20
votes
7
answers
25k
views
Multiple clipping areas on Fabric.js canvas
For making Photo Collage Maker, I use fabric js which has an object-based clipping feature. This feature is great but the image inside that clipping region cannot be scaled, moved or rotated. I want a ...
20
votes
5
answers
27k
views
Android - Get Contact Photo from phone number
how can I get contact photo from a contact's address (phone number)?
20
votes
2
answers
55k
views
How to pull photos with ADB from local storage - android device
i have some problems with my Asus Zenfone 2 device (no root).
In particular, some days ago, while i was travelling abroad, my device decided to no more turn on, staying permanently in the loading ...
20
votes
4
answers
17k
views
Phonegap - Retrieve photo from Camera Roll via path
In my PhoneGap/jQuery Mobile app, I'm currently using PhoneGaps' Camera API to allow the user to take a photo, which is also stored in the Camera Roll. I'm setting DestinationType to FILE_URI and ...
18
votes
3
answers
2k
views
Photos framework image from video at a certain frame
I have made a library collectionview filled with videos i fetch from the Photos framework, i use thumbnails to display all the different videos using the following method
func requestImageForAsset(_ ...
18
votes
5
answers
12k
views
How do I retrieve photos from a Facebook group using the GraphAPI?
I would like to retrieve photos from a facebook group using the GraphAPI. Based on FB Docs I don't see any connections to photos. I would like to get the photos and the users who uploaded them.
18
votes
2
answers
10k
views
How to Skip Retake/Use Photo option after capturing image by camera in IOS 7
Here I am developing an app using IOS 7 in which camera used to capture the image. but after capturing image it displaying Retake/Use Photo options. i want that after capturing image it directly go to ...
17
votes
6
answers
22k
views
Android camera freezes after taking one photo
I'm doing one project with camera and after taking one photo camera freezes and u have to finish the activity and recall it again to take another photo, how can I take photo freeze for just 1-2 sec ...
17
votes
3
answers
9k
views
How to embed image in html in MFMailComposeViewController for iPhone
I am trying to embed a bunch of small images in an html table which I want to send using MFMailComposeViewController. After doing some search I figured out almost everyone is suggesting "NSData+Base64 ...
17
votes
2
answers
19k
views
iPhone SDK - How to disable the picture preview in UIImagePickerController?
Is there any way to disable the image preview after taking a picture with the UIImagePickerController? I want to dismiss the ImagePicker as soon as the user pressed the shutter release button.
17
votes
6
answers
84k
views
How to display my photo albums and photos that are in FB on my own website
I would like to display my photo albums and photos that are in FB on my own website. However everything I have tried requires an access token that I seem to only get if I login to FB. I don't want ...
15
votes
7
answers
25k
views
Image resize quality (Java) [closed]
I have an open-source app which uploads photos to Facebook. To save bandwidth, the photos are automatically resized before uploading (Facebook imposes a maximum size limit). A few people have ...
15
votes
2
answers
51k
views
Get all photos of a page using Facebook API
I am new to Facebook API but I have to get all photos from a Facebook page. I managed to get a graph api query that returns all pictures of only the first ever created album on the page which is the ...
15
votes
6
answers
10k
views
How to properly detect a PHAsset's file type (GIF)
I have no idea why this is so difficult. I'm trying to determine the file type of a PHAsset, specifically, I want to know if a given asset represents a GIF image or not.
Simply inspecting the asset's ...
15
votes
4
answers
13k
views
How to retrieve PHAsset from UIImagePickerController
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?
15
votes
5
answers
18k
views
Photo stitching/panorama API/DLL/Library anyone?
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 ...
15
votes
5
answers
9k
views
Folder Structure for storing millions of images?
I am building a site that is looking at Millions of photos being uploaded easily (with 3 thumbnails each for each image uploaded) and I need to find the best method for storing all these images.
I've ...
13
votes
4
answers
48k
views
Facebook Graph API - Get like count on page/group photos
I've been testing graph API and ran into a problem. How can I get like count from photos of a page/group?
I'm administrator/creator of a group. When entering in https://developers.facebook.com/tools/...
13
votes
2
answers
7k
views
UIImageWriteToSavedPhotosAlbum does not work in iOS 6 iPad 3
I'm using the next function to save photos in my app:
UIImageWriteToSavedPhotosAlbum(pngImage, self, @selector(image:didFinishSavingWithError:contextInfo:), NULL);
It works well on iOS 5.1.1 ...
13
votes
3
answers
8k
views
Handle large images in iOS
I want to allow the user to select a photo, without limiting the size, and then edit it.
My idea is to create a thumbnail of the large photo with the same size as the screen for editing, and then, ...
13
votes
4
answers
46k
views
How to capture still image from webcam on linux
I am trying to write a C++/Qt program for linux, where I take a still image photo from a webcam, make some transformations to a photo (cropping, resizing, etc.), and save it to a jpeg file.
But I ...
13
votes
3
answers
1k
views
Make sure photos are saved with the same orientation they were taken?
For some reason, my camera app saves all photos rotated 90 degrees (pictures only look right when taken with camera on landscape mode) I believe onPictureTaken should rotate photos automatically but I ...
12
votes
5
answers
12k
views
Camera feed slow to load with AVCaptureSession on iOS - How can I speed it up?
Right now I'm trying to allow users to take pictures in my app without using UIImagePickerController. I'm using AVCaptureSession and all the related classes to load a camera feed as a sublayer on a ...
12
votes
3
answers
25k
views
How to send a photo to Instagram using my Android app?
My app takes photos and I want to share it on Instagram.
My app save the image in this directory
File storagePath = new File(Environment.getExternalStorageDirectory() + "/DCIM/Camera/tubagram");
...
12
votes
5
answers
18k
views
how save photo in telegram python bot?
i want to write a telegram bot that save photos .
this is my code , but its not working.
and i don't know what is my problem?
def image_handler(bot, update):
file = bot.getFile(update.message....
12
votes
2
answers
8k
views
Android Camera - How can i take a specific "rectangle" from the byte array?
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 ...
12
votes
1
answer
5k
views
Photo/Image Viewer for Monotouch [closed]
I've googled a bit but could not find a simple Image Viewer class to use in my MonoTouch app.
I don't need to show image thumbnails neither a complete photo album (with multiple photos).
I just need ...
12
votes
1
answer
1k
views
Search iOS photos by keyword?
Apple's Photos app allows users to query photos with search keywords like "surfing", "food", "sky".
How could a third-party iOS app with Camera and Photos permissions search the phone's camera roll ...
12
votes
1
answer
1k
views
How to update the timestamp on a photo or add the time zone on Google+ Photos?
Using Picasa Web API I retrieve a photo from my Google+ photo album and attempt to change the timestamp (the time was wrong on my phone, so trying to fix it):
var service = new PicasaService("...
11
votes
10
answers
7k
views
Where should I store photos? File system or the database? [duplicate]
Possible Duplicate:
storing uploaded photos and documents - filesystem vs database blob
I am starting to develop a web app, the primary purpose of which is to display photos. The users will be ...
11
votes
5
answers
57k
views
Upload photo to Facebook with Facebook Android SDK in Android
I'm new to Android. I'm searching for load photo to facebook by authorization, getting access_token. How to do this? Please give me a sample code in Java.
11
votes
6
answers
8k
views
storing uploaded photos and documents - filesystem vs database blob
My specific situation
Property management web site where users can upload photos and lease documents. For every apartment unit, there might be 4 photos, so there won't be an overwhelming number of ...
11
votes
4
answers
8k
views
After Taking Picture cannot select Use Photo or Retake
So I'm trying to update an app for iOS 7 and I'm running into issues with my custom overlay. The overlay is an image that I'm framing the photo with (both live and using a full resolution version to ...
11
votes
3
answers
7k
views
Programmatic access to the Photos Library on Mac OS X: PhotoKit / Photos Framework for Mac
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.
...
11
votes
2
answers
7k
views
How to preserve original photo metadata when editing PHAssets?
I am editing photos via PhotoKit but I discovered this does not preserve the original photo's metadata. This occurs even with the SamplePhotosApp provided by Apple when they apply Sepia or Chrome ...