exif

How do I retrieve the properties of a photo taken on a digital camera using .NET?

会有一股神秘感。 提交于 2019-12-21 16:54:39
问题 Preferably in VB.Net, but C# is fine, how can I access the extra properties added to a file by my digital camera, like Date Picture Taken , Shutter Speed or Camera Model ? 回答1: The following article should be helpful. 回答2: I maintain a library that offers comprehensive support for extracting image metadata from a variety of file formats. https://github.com/drewnoakes/metadata-extractor-dotnet 回答3: When I built something similar I used this article quite a bit. But basically you're looking for

PHP exif_read_data Illegal IFD size

廉价感情. 提交于 2019-12-21 06:59:58
问题 I'm working on an application where I fix orientation (if it is present) of jpeg files downloaded from an AWS bucket. Here you can verify that this image has exif Rotation section. I download the image with file_put_contents('/local/path/to/file', file_get_contents('/path/to/url/image')); And after I try to fix orientation through the Gregwar Image library. Image::open($path)->fixOrientation()->save($dest, $type, $quality); I tried with several images and I always receive the message Warning:

How can I write an Exif header without recompressing the JPEG, in .NET?

江枫思渺然 提交于 2019-12-21 06:19:18
问题 I have a JPEG image that I want to set an Exif header to (particularly, Author). In .NET, I can do this relatively easy using GetPropertyItem and SetPropertyItem, but in order for that change to be persisted to the actual .JPG file, I need to Save it, which basically recompresses the image. Is there any way to do this without recompressing? 回答1: I believe exiv2net library (a .NET wrapper on top of exiv2) may be what you're looking for. 来源: https://stackoverflow.com/questions/1813676/how-can-i

Correcting Image Orientation server side in vb.net

与世无争的帅哥 提交于 2019-12-21 05:40:24
问题 In a mobile web application I am developing, users are allowed to take a picture with their camera and the camera image is uploaded to a server. The issue I am having is that on iOS devices, images get an EXIF Orientation tag associated with them such as "ROTATE 90 CW". This orientation tag causes the image to be displayed in an incorrect orientation when it is displayed. For example, if the user takes a picture of something with their iPhone in portrait orientation, the image appears to be

Reading/Writing image XMP on iPhone / Objective-c

余生颓废 提交于 2019-12-21 05:07:18
问题 I'm trying to read XMP information from a jpeg on iPhone. I can get tags from IPTC, TIFF or EXIF easily using ImageIO but not XMP. I'm specially interested the rating tag. Does anyone know how to do that? 回答1: I've been trying to figure this out myself for a bit. Based on what I've found it looks like a you will need to create or find a custom toolset for parsing the XMP data. It is stored in an XML format. Adobe has an SDK and toolset for dealing with XMP data that can be found here. If you

Which EXIF tag to store keyword/tag for a photo?

扶醉桌前 提交于 2019-12-21 04:41:37
问题 I am developing a photo gallery which will read/write EXIF tags. I will put photo title in the EXIF tag DocumentName and description in EXIF tag ImageDescription. I also plan to use the geo-tags. But what about photo tags/categories? I want to store a space-separated string of the tags a photo is tagged with in my system. Is there any EXIF tag that is normally used for this type of information? I could write my own (i.e. PhotoTags) but I guess that is not really of any use except for

ALAssetPropertyDate returns “wrong” date

。_饼干妹妹 提交于 2019-12-21 03:01:22
问题 I'm currently working on a project in which i need to read some (Latitude, Longitude and date ) EXIF data. The location data seems correct, but the date i'm getting seems to be the "date last modified" date. { CLLocation *loc = [asset valueForProperty:ALAssetPropertyLocation]; NSDate *date = [asset valueForProperty:ALAssetPropertyDate]; //Returns Last modified date(Picture was taken ... let's say september //last year and it would return the date and time I 'modified' the image). NSString

How to attach EXIF metadata to a serialized Bitmap in Android?

China☆狼群 提交于 2019-12-20 09:55:54
问题 In Android, when decoding a Bitmap from a photo on the phone, the EXIF data in the original gets lost. I am sending this Bitmap to my server via a socket and would like to re-attach the missing EXIF data to the data being sent. I have some code that loads a Bitmap object from the MediaStore and compresses it to a byte array in preparation to send it over a socket: Bitmap bitmap = ... ByteArrayOutputStream stream = new ByteArrayOutputStream(bitmap); bitmap.compress(CompressFormat.JPEG, 70,

How to remove or edit Exif from mp4 video?

孤街醉人 提交于 2019-12-20 08:37:03
问题 I recorded a Full HD video with Samsung Galaxy II, when I uploaded it to YouTube I found that it turned to 90 degrees like Portrait layout 1080x1920 NOT 1920x1080. I found the cause of the problem: YouTube is reading video metadata and rotate video acording Exif orientation before encoding This is ExifTool report (please see last tag "Rotation"): ExifTool Version Number : 8.61 File Name : video.mp4 Directory : . File Size : 217 MB File Modification Date/Time : 2011:08:11 00:47:23+04:00 File

Weird fatal crash with ExifInterface and VM aborting

浪子不回头ぞ 提交于 2019-12-19 09:53:04
问题 I'm getting a strange fatal crash with ExifInterface. The line that gives the crash is this, quite straightforward (Foto.java:341): ExifInterface exif = new ExifInterface(filename); I only get the crash with some pictures. Even more strange is the fact that if I see a normal picture's exif, close the program, and open the program again to see a problematic picture, I get the exif from the previous image. Quite strage. Any idea what is causing this? The Strack Trace is below. 01-13 21:23:42