photo

How to take a photo and send to HTTP POST request with Android?

天大地大妈咪最大 提交于 2019-12-17 09:52:31
问题 I know this has answers here and there, but I couldn't make any of them work. Does anybody know a good reference, or a tutorial for this, maybe also post here? What I need to do is : 1) provide a button, that opens the camera application. I have done this by a startResultActivity() 2) user takes the photo, and returns to the application, with the photo saved, preferably with a preview in an ImageView. I tried something, but I cannot test in an emulated device. 3) presses a "send" button, and

HTML : Is there any way to show images in a textarea?

依然范特西╮ 提交于 2019-12-17 06:37:14
问题 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 World | | _______ | | | Img | | | | | | | |_____| | |Hello again. | | _______ | | | Img2| | | | | | | |_____| | |________________| As I know and seen in a div or anything what has contentEditable="true" allows image too but, allows many other HTML tags and a lots of things what I don't want :| I want

Multiple clipping areas on Fabric.js canvas

帅比萌擦擦* 提交于 2019-12-17 05:43:30
问题 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 fixed position clipping region and the image can be positioned inside the fixed clipping area as the user want. I googled and find very near solution. var canvas = new fabric.Canvas('c'); var ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.rect(10,10,150,150); ctx.rect(180,10,200,200); ctx

Unable to authenticate when trying to add photos or albums through Google Picasa API

混江龙づ霸主 提交于 2019-12-14 04:02:11
问题 I am trying to upload a photo to an album through Picasa's API, however I am getting an authentication error. My credentials are being successfully authenticated right when the program starts, just not when I am trying to upload a photo or add an album Here is the code I have: import gdata.photos.service import gdata.media import gdata.geo gd_client = gdata.photos.service.PhotosService() gd_client.email = 'username@gmail.com' gd_client.password = 'password' gd_client.source = 'exampleCo

How to Upload a Photo to a Facebook Page's Timeline as the Facebook Page itself, Not to the user feed

自作多情 提交于 2019-12-14 03:14:31
问题 OK so the cod below basically works fine, WHEN this line is like this: $post_url = '/'.$userPageId.'/feed'; This successfully posts to the Facebook Page Timeline. But I want to upload a photo, and when I change this line to $post_url = '/'.$userPageId.'/photos'; It posts the photo... but it posts to the User Feed, instead of AS the Facebook Page. I want this to post the photo to the Facebook Page Timeline [config.php] <?php include_once("inc/facebook.php"); ##################################

Darken parts of a free-hand cropped image in android

假如想象 提交于 2019-12-13 23:05:58
问题 I want to add a free hand crop functionality. Till now I can open the picture and draw a path around the part of the image that I want to crop thanks to this code: https://stackoverflow.com/a/18459072/2361533 But before opening the cropped image in another activity, I want to darken the outside part of the crop path, to show the user how the cropped image will be. In case he does not like the result, he could reset the image. It would be something like the image here: Android: Free Croping of

How to register my app so that it appears in the phote edit list in windows phone 8.1 runtime

空扰寡人 提交于 2019-12-13 21:08:23
问题 How can I register my windows phone 8.1 runtime app so that it appears in the poto edit list? The only way I see is to create an app for windows phone 8.0 silverlight (there is a template in VS 2013) then edit the wmappmanifest.xml and then upgrade the project to wp81. But I think there must be another way to achieve that directly in a wp81 runtime project. Does anyone know how to do that properly? 回答1: According to MSDN article Migrating your Windows Phone 8 app to a Windows Runtime XAML app

Ipad Get Images from custom album Device Issue

Deadly 提交于 2019-12-13 18:31:33
问题 Am having a Custom folder in my ipad device. Am using this code to get image from Custom album: self.assetGroups = [[NSMutableArray alloc] init]; // Group enumerator Block dispatch_async(dispatch_get_main_queue(), ^ { void (^assetGroupEnumerator)(ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *group, BOOL *stop) { if (group == nil) { return; } if ([[group valueForProperty:ALAssetsGroupPropertyName] isEqualToString:@"Ganesh"]) { [self.assetGroups addObject:group]; [self loadImages]; return; } if

Tags friends photo

徘徊边缘 提交于 2019-12-13 16:18:46
问题 I use this codes , but I get an error Fatal error: Uncaught OAuthException: (#121) Invalid photo id thrown in /home/a283357/public_html/app/base_facebook.php on line 1106 MY codes are for tags $data = array(array('tag_uid' => $friends, 'x' => rand() % 100, 'y' => rand() % 100 )); $data = json_encode($data); //, 'tags' => $data, $photo_details = array( 'message'=> 'message ', 'tags' => $data, 'image' => '@' . realpath($file) ); $upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post',

Android: set contact photo with ContactsContract insert intent

瘦欲@ 提交于 2019-12-13 12:40:23
问题 I am using ContactsContract to insert a new contact by sending the user to a "New contact" intent. The code I am using is: Intent i = new Intent(Intent.ACTION_INSERT); i.setType(Contacts.CONTENT_TYPE); i.putExtra(Insert.NAME, "Some Contact Name"); i.putExtra(Insert.EMAIL, "address@email.com"); i.putExtra(Insert.PHONE, "123-456-7890"); startActivity(i); However, I need to also somehow pass in a locally stored photo (in res/drawable) to show up on this "New contact" intent. I was hoping that