exif

FileNotFoundException when Using ExifInterface

牧云@^-^@ 提交于 2020-01-11 11:33:14
问题 I have been uploading images to FirebaseStorage, but often they are the wrong way around when displaying them. I have discovered the ExifInterface that can determined the orientation of the image and rotate and flip it if necessary. When selecting the image from the gallery area on my phone I get this error. I can select the image on my phone from the gallery and It can be displayed on the page. The differences between the URI address and the data is one / Data.getData() address : content:/

How do I set properties of jpeg file in Xamarin for Android?

≯℡__Kan透↙ 提交于 2020-01-11 07:50:35
问题 I am working with jpeg files, when I look at the details of a jpeg file under windows (right-click->properties), under the Details tab there are entries for Title, Subject, Rating, Tags, Comments, etc. How can I set these properties in Xamarin (Android)? Thanks. 回答1: Here is some code to guide you. ExifInterface newExif= new ExifInterface(filePath); newExif.SetAttribute(ExifInterface.TagGpsLatitude, "teste lat"); newExif.SetAttribute(ExifInterface.TagGpsLatitudeRef, "teste lat ref"); newExif

How to use PIL to resize and apply rotation EXIF information to the file?

折月煮酒 提交于 2020-01-09 08:43:01
问题 I am trying to use Python to resize picture. With my camera, files are all written is landscape way. The exif information handle a tag to ask the image viewer to rotate in a way or another. Since most of the browser doesn't understand this information, I want to rotate the image using this EXIF information and keeping every other EXIF information. Do you know how I can do that using Python ? Reading the EXIF.py source code, I found something like that : 0x0112: ('Orientation', {1: 'Horizontal

How to use PIL to resize and apply rotation EXIF information to the file?

空扰寡人 提交于 2020-01-09 08:42:29
问题 I am trying to use Python to resize picture. With my camera, files are all written is landscape way. The exif information handle a tag to ask the image viewer to rotate in a way or another. Since most of the browser doesn't understand this information, I want to rotate the image using this EXIF information and keeping every other EXIF information. Do you know how I can do that using Python ? Reading the EXIF.py source code, I found something like that : 0x0112: ('Orientation', {1: 'Horizontal

Objective-C - Adding GPS information to a photograph

↘锁芯ラ 提交于 2020-01-07 02:18:04
问题 I am wondering if it is possible to add GPS information to a photograph when saving the item to the camera roll. The code I currently use to save the image is: UIImage *theImage = (UIImage *)[info objectForKey: UIImagePickerControllerOriginalImage]; UIImageWriteToSavedPhotosAlbum(theImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); I am wondering how I can modify the image EXIF data to add the current location, and make it compatible with the 'Places' functionality on

Using a node module within a Grunt Task fails

懵懂的女人 提交于 2020-01-06 13:11:33
问题 I'm trying to extract meta data from files read within a Grunt task. executing: node test.js on this file: var exif = require('exif2'); exif('fixtures/forest.png', function (err, o) { console.log(arguments); }); Produces the expected output However, executing the grunt process: grunt projectJSON module.exports = function (grunt) { var exif = require('exif2'); return grunt.registerMultiTask("projectJSON", "Creates project JSON file.", function () { exif('fixtures/forest.png', function (err, o)

Exif tags on universal Windows Platform C#

佐手、 提交于 2020-01-06 01:35:07
问题 How do I add Tags to a jpeg picture on UWP (universal Windows Platform) / Windows Phone 10. WindowsBase and PresentationCore not available. 回答1: Here is an example about how to write the Artist exif tag to a jpeg image in Windows Runtime. You can find all of the EXIF tag ids in this web page: http://www.exiv2.org/tags.html var src = await KnownFolders .PicturesLibrary .GetFileAsync("210644575939381015.jpg"); using (var stream = await src.OpenAsync(FileAccessMode.ReadWrite)) { var decoder =

How to get exif information from ALAsset?

血红的双手。 提交于 2020-01-05 23:17:14
问题 I need to get exif information from selected asset and to display part of it on the screen. 回答1: [[asset defaultRepresentation] metadata]; returns a dictionary of dictionaries of metadata for the given asset representation. Check out this dictionary for the data you're interested in. I am not sure but I think the keys in that dictionary (and subdictionaries) are the same as the ones listed under CGImageProperties Reference. 回答2: This is a complete answer ... all in one spot NSDictionary *nsd

Finding keywords in image data

折月煮酒 提交于 2020-01-05 09:33:45
问题 I kinda ran into a problem, I'm working on a small image site for a photographer, the photographer uses photoshop to store information into the image. Information such as image data, location, descriptions, ... He's been doing this since CS3. When user uploads a picture to the site, he wants everything to go automatically, so I was trying to read out all the keywords, like this: $size = getimagesize($path, $info); if(isset($info['APP13'])) { $iptc = iptcparse($info['APP13']); if(isset($iptc[

Android camera saves photo without ExIf

可紊 提交于 2020-01-04 19:06:56
问题 I want to take photo using MediaStore.ACTION_IMAGE_CAPTURE intent, and save with MediaStore.EXTRA_OUTPUT. My code is same as this link: http://developer.android.com/training/camera/photobasics.html However, saved photo has no exif. It has only size information. Here is my log: TAG_APERTURE: null TAG_DATETIME: null TAG_EXPOSURE_TIME: null TAG_FLASH: null TAG_FOCAL_LENGTH: null TAG_GPS_ALTITUDE: null TAG_GPS_ALTITUDE_REF: null TAG_GPS_DATESTAMP: null TAG_GPS_LATITUDE: null TAG_GPS_LATITUDE_REF: