photo

PHP Perform Action with Incoming Email

冷暖自知 提交于 2019-11-29 08:56:19
I'm building a photo sharing website (just testing PHP stuff) and I want users to be able to submit photographs using email. For instance, the website needs to run a script when the users sends an email with an image attachment and text in the body. The image would be uploaded to the server, and a new "photo post" would be created with the text in the email body being the description. My question is, how do I tell my server to run a script automatically when email is RECEIVED? Any/all help is greatly appreciated. If you would like more info, just comment! Thanks! -Giles If you use cpanel you

How to detect Hotspots in an image

做~自己de王妃 提交于 2019-11-29 08:54:40
问题 How to detect a hotspot in an image using opencv? I have tried googling but couldnt get a clue of it. Description: I need to filter good images from a live video stream. In this case I need to just detect the Hotspot in a frame. I need to do this in opencv. What is HotSpot? Hot spots are shiny areas on a subject’s face which are caused by a flash reflecting off a shiny surface or by uneven lighting. It tends to make the subject look as if they are sweating, which is not a good look. Update :

Upload image with facebook API

徘徊边缘 提交于 2019-11-29 08:52:43
Question: How to upload an image from my webserver to facebook via FB API? I'm writing an application that retrieves images from the user's photo album, makes some modifications (e.g. adding a watermark) then send it back to photo album. The code I use to upload the photo is as follows <?php include_once("api/facebook.php"); include_once("config.php"); include_once("utils.php"); include_once("bemyfans.php"); $facebook=new Facebook($api_key,$app_secret); $facebook->require_frame(); $user=$facebook->require_login(); echo "<p>Hello <fb:name useyou='false' uid=\"$user\"/></p>"; $args = array( 'api

Saving a Video to the Photo Library - iPhone SDK

孤者浪人 提交于 2019-11-29 07:59:10
Is there any way for me to save a video in the Documents directory to the Photos Library? I have the link of the video in the documents directory, I just don't know how to save it to the Photos app. Thanks, Kevin Use the UISaveVideoAtPathToSavedPhotosAlbum function. Gokul If you are saving it in a local directory first, then you can save it as.. ALAssetsLibrary *assetLibrary = [[ALAssetsLibrary alloc] init]; [assetLibrary writeVideoAtPathToSavedPhotosAlbum:url completionBlock:^(NSURL *assetURL, NSError *error){ if(error) { NSLog(@"error while saving to camera roll %@",[error

How can I automatically determine whether an image file depicts a photo or a 'graphic'?

[亡魂溺海] 提交于 2019-11-29 05:17:12
How can I automatically determine whether an image file depicts a photo or a 'graphic'? For example using Imagemagick? I am somewhat at the limits of my knowledge here, but I read a paper and have worked out a way to calculate image entropy with ImageMagick - some clever person might like to check it! #!/bin/bash image=$1 # Get number of pixels in image px=$(convert -format "%w*%h\n" "$image" info:|bc) # Calculate entropy # See this paper www1.idc.ac.il/toky/imageProc-10/Lectures/04_histogram_10.ppt convert "$image" -colorspace gray -depth 8 -format "%c" histogram:info:- | \ awk -F: -v px=$px

Take monochrome picture (black and white) with Android

≯℡__Kan透↙ 提交于 2019-11-29 02:31:15
I would like to take a picture in true black and white in my app. I searched for solutions (in this site too), but I always found solution to put a photo in gray scale (for example in this topic ), but it's not what I am looking for ... I also found a topic proposing this : public static Bitmap createContrast(Bitmap src, double value) { // image size int width = src.getWidth(); int height = src.getHeight(); // create output bitmap Bitmap bmOut = Bitmap.createBitmap(width, height, src.getConfig()); // color information int A, R, G, B; int pixel; // get contrast value double contrast = Math.pow(

android facebook publish photo

风格不统一 提交于 2019-11-29 01:59:27
问题 After looking on the net for 2 days I finally decided to post on SO. Well I simply want to publish a photo in my android app on to facebook. AM using the official android-facebook-sdk. I imported to example project and in the upload section add my code to upload photo. like mUploadButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { Bundle params = new Bundle(); params.putString("method", "photos.upload"); Bitmap temp = BitmapFactory.decodeResource(getResources(),R

Storing photos and videos in Core Data?

我是研究僧i 提交于 2019-11-28 23:28:40
问题 I am developing an app that lets the user record videos and photos. Now I am wondering what is the best way to store them? The first idea is of course to save it in the user's photo library, just as if he had recorded the photo from the Camera app, and use a reference to the files. Now there's the problem that the user can access and delete files from the Photos application, which may be still needed by my app. I don't think that I can prevent the user from deleting photos, but how do I deal

How to send a photo to Instagram using my Android app?

强颜欢笑 提交于 2019-11-28 23:16:45
问题 My app take photos and I want to share in Instagram. My app save the image in this directory File storagePath = new File(Environment.getExternalStorageDirectory() + "/DCIM/Camera/tubagram"); Now I'm trying to get the last picture I taked to share in Instagram using this code Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType("image/*"); final ContentResolver cr = getContentResolver(); final String[] p1 = new String[] {MediaStore.Images.ImageColumns._ID,

How to make my iOS app visible in photo sharing options like Facebook and Twitter?

こ雲淡風輕ζ 提交于 2019-11-28 18:55:41
问题 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 for sharing PDF files via custom app, but no luck for iOS "photos". I have also go through this link https://stackoverflow.com/questions/9266079/why-is-my-iOS-app-not-showing-up-in-other-apps-open-in-dialog and did changes in my app, but it seems not to be working. 回答1: This can't be done,