photo

how save photo in telegram python bot?

女生的网名这么多〃 提交于 2020-01-10 20:11:10
问题 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.photo.file_id) print ("file_id: " + str(update.message.photo.file_id)) file.download('image.jpg') updater.dispatcher.add_handler(MessageHandler(Filters.photo, image_handler)) updater.start_polling() updater.idle() pleas help me to solve my problem. 回答1: update.message.photo is an array of photos sizes

Command line photo printing in Windows 7

孤人 提交于 2020-01-10 20:09:10
问题 I need to print a photo (.jpg) from the command line in Windows 7. I have tried using lpr to no success, and found methods for Windows XP like the following: rundll32 shimgvw.dll ImageView_PrintTo /pt myPhoto.jpg "myPrinter" This doesn't work (not surprising), and my hours of Googling has turned up nothing else. I'm trying to find a stock way to do this on any Windows 7 machine without needing to install or set anything up. Does there exist such a command? 回答1: Maybe reformatting the command

File path of image on iPhone

和自甴很熟 提交于 2020-01-07 08:32:02
问题 I'm interested in uploading a file (image) from an iPhone library/camera roll to a remote web server. I already have a script working that will upload any file from the phone to a web server. However, I assume that to upload an image from the iPhone, I need the PATH to said image. Is there any way this can be done, once the user picks said image from the camera roll? I.e., how do I get the file path of an image selected in the camera roll? I have tried to no avail. Thanks! 回答1: You will want

How to use segue to pass taken photo

冷暖自知 提交于 2020-01-07 07:45:09
问题 I want to pass a photo taken in the first view controller to a second view controller. I want the user to take the photo in the first view controller and then crop in in the second view controller and then save.. So its like.. User take photo→crop→save. I just want to do this simple task but taking me days to get the segue go right.. Is segue the best way to do this? or is there a more easier way to do this task. I am a beginner in objective -c so its making me confused with segues and all

flash/JavaScript: non 360 (partial) panorama viewer

夙愿已清 提交于 2020-01-07 03:59:24
问题 I'm searching for free partial panorama viewer. It should be placed in somewhere in the page and it should be customizable (openSource?). So far i found pan0.net but it only supports 360 and i have priority for non 360... 回答1: I recently created one where you can loop an image around horizontal 360 but it does not distort in 3d perspective. Let me know if that's what you are looking for: Web Design Panorama 回答2: I just edited pan0 sources adding if (camera.rotationY < minRA) camera.rotationY

Android take photo and send it as an attachment to an email, imageview reset on rotation

拜拜、爱过 提交于 2020-01-06 08:11:24
问题 I need a little or much help here. I created a fragment that takes a photo and passes it as an attachment on the email that I send. The fragment works but it has some bugs, please take a look: I tried almost every code and example to take a photo and manage to put it on an imageview but in vain it does not work, because I have a samsung mobile and samsung mobiles work different. So I copied onActivityResult method from another guy's tutorial.(If there is a simpler please way be my guest) The

How save photo capture windows 8 c# metro app?

时间秒杀一切 提交于 2020-01-05 07:49:46
问题 I looked everywhere but can't find how save my photo after I captured it. I use windows 8 media capture, and after I capture it, I show it on my page. But don't know how to save it to a particular place. This is how I take the photo, pretty classic: private async void Camera_Clicked(object sender, TappedRoutedEventArgs e) { TurnOffPanels(); CameraCaptureUI camera = new CameraCaptureUI(); camera.PhotoSettings.CroppedAspectRatio = new Size(16, 9); StorageFile photo = await camera

How save photo capture windows 8 c# metro app?

自古美人都是妖i 提交于 2020-01-05 07:49:13
问题 I looked everywhere but can't find how save my photo after I captured it. I use windows 8 media capture, and after I capture it, I show it on my page. But don't know how to save it to a particular place. This is how I take the photo, pretty classic: private async void Camera_Clicked(object sender, TappedRoutedEventArgs e) { TurnOffPanels(); CameraCaptureUI camera = new CameraCaptureUI(); camera.PhotoSettings.CroppedAspectRatio = new Size(16, 9); StorageFile photo = await camera

Photo location available through API?

醉酒当歌 提交于 2020-01-04 06:58:15
问题 Is there a way of accessing a photos location through the graph API ? I dont see it documented In facebook I can add a location tag to a photo when uploading, but I dont seem to be able to retrieve this later programmatically I know its possible to get the location of an album. hope you can help thanks 回答1: No, photo location is not currently exposed thru the API. You can check to see if someone has already filed a request for it at http://developers.facebook.com/bugs and if not, then file a

ANDROID ZXING: Saving a photo in onPreviewFrame saves a photo every frame. How to only save a single photo upon scan?

独自空忆成欢 提交于 2020-01-03 05:33:11
问题 For the last few weeks I have been attempting to alter Zxing to take a photo immediately upon scan. Thanks to help I am at a point where I can be consistently saving an image from the onPreviewFrame class within PreviewCallback.java The code I use within the onPreviewMethod method shall follow, and then a short rundown of how my app works. public void onPreviewFrame(byte[] data, Camera camera) { Point cameraResolution = configManager.getCameraResolution(); Handler thePreviewHandler =