exif

How can I read JPEG EXIF orientation tags in a MS Word macro?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 00:24:52
问题 I have a Word macro that opens all the JPEGs in a particular folder, and inserts them into the document. The problem is the orientation. My macro reads the width vs. length to determine the orientation. But Word inserts the image according to the EXIF orientation tag, and Windows 10 rotates by the EXIF orientation tag. That means I have no real way of controlling the rotation of the image in the document. How can a Word macro read the EXIF orientation tag of a JPEG? 来源: https://stackoverflow

PHP imagecreatefromjpeg while keeping orientation

妖精的绣舞 提交于 2019-12-23 17:49:16
问题 I have been working on my image upload website. I am trying to take pictures from my IPhone and upload them to my web server. My files are uploading fine, However the problem i am running into is all of my images rotate 90 degrees to the left. My Image upload process $imageObject = imagecreatefromjpeg($_FILES["fileToUpload"]["tmp_name"]); imagejpeg($imageObject, $target_file, 75); Creating a new image and uploading it to my web directory. I create a new image to remove all of the EXIF Data

No orientation in exif data - PHP image upload

☆樱花仙子☆ 提交于 2019-12-23 12:46:05
问题 been trying to detect the image orientation of uploaded images from iPhones and then adjust their orientation from that. I am trying to fix the issue where images taken in potrait, are uploaded with a -90 degree rotate. I tried numerous switch statements which were not working, so decided to return the exif data in my JSON return. The issue i see is that their is no orientation in the exif data. I am doing so: $imagefile = $fileToUpload["tmp_name"]; $destinationImage = imagecreatefromstring

How does one add custom metadata tags to an image on the iPhone?

送分小仙女□ 提交于 2019-12-23 01:16:52
问题 I tried adding custom entries in the exif dictionaries I received from an image. This didn't work. I'm assuming this is due to the fact exif is a standard that is already defined. Basically I am trying to create a metadata tag that can be placed in jpegs that will have no character limit. I read that XMP metadata tags do not have character limits. Is this true? If so how would I create these on the iPhone? Thank you. 回答1: I'm not sure what you've all tried code wise, but Caffeinated Cocoa has

Mac OS X 10.6 APIs report incorrect EXIF data for aperture

南楼画角 提交于 2019-12-22 11:24:25
问题 I'm using two APIs to read EXIF data from images, which I'll call "valueForProperty:NSImageEXIFData" and "CGImageSourceCopyPropertiesAtIndex". Both provide the same EXIF data, although the second provides other data (e.g., GPS, TIFF), too. Both give wrong values for "ApertureValue" and "MaxApertureValue", and the correct value for "FNumber". The example program that follows dumps all of the metadata returned by each method, and also invokes ExifTool. The output is summarized at the end.

EXIF like thing for Videos

可紊 提交于 2019-12-22 10:54:00
问题 Is there any standard way to get information from a video file? For images we have EXIF data which can be used to get information about the date/time , size etc of the image file. I was wondering if there is such a thing for videos as well. The use case is - I have lot of videos which I shot from my digital camera. I want to rename them to something more meaningful like YYYY-MM-DD rather than Video_N . The YYYY-MM-DD should be the date and time when the video was shot. Any solution in Python,

Issues extracting exif data for exif 2.3 using PHP Version 5.2.9

╄→гoц情女王★ 提交于 2019-12-22 10:33:50
问题 PHP Version 5.2.9 I was wondering if anyone has experienced issues (and possibly found a resolution) with extracting GPS or even just all EXIF data using PHP's exif_read_data() for EXIF 2.3. My company recently bought a Fujifilm Finepix XP150 which allows for GPS directional data, this is essential for a tool I am building for my company. The code below is what I am using to extract, I am passing through once for a list of the entire EXIF data and the second time is giving me the longitude

Saving photo with metadata into Camera Roll with specific file name

怎甘沉沦 提交于 2019-12-22 06:41:12
问题 I'm trying to save an image with exif metadata using following code: +(void)saveImageWithMetaToCameraRoll:(UIImage*)image location:(CLLocation*)location album:(PHAssetCollection *)album exif:(NSDictionary *)metadata isOriginal:(BOOL)isOriginal isFavorite:(BOOL)isFavorite completionBlock:(PHAssetBoolBlock)completionBlock { NSMutableDictionary *meta = [metadata mutableCopy]; NSData *imageData = UIImageJPEGRepresentation(image, 1.0f); CGImageSourceRef source = CGImageSourceCreateWithData((_

How to extract the Photo/Video component of a MVIMG?

☆樱花仙子☆ 提交于 2019-12-22 04:05:40
问题 The Google Pixel 2 and probably other phones since have the capability to cover "Motion Photos". These are saved as MVIMG and comparatively big. I’m looking for a way to remove/extract the video. So far I found a promising exif tag $ exiftool -xmp:all MVIMG_123.jpg XMP Toolkit : Adobe XMP Core 5.1.0-jc003 Micro Video : 1 Micro Video Version : 1 Micro Video Offset : 4032524 I thought the video might be present at the specified offset, but this doesn’t work: $ dd if=MVIMG_123.jpg of=video.mp4

图片方向 image orientation Exif

不想你离开。 提交于 2019-12-22 00:10:55
更新 : 2019-01-02 refer https://stackoverflow.com/questions/3129099/how-to-flip-images-horizontally-with-html5 (使用 canvas 做 flip) https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/scale 之前没有说到关于 flip 的概念 当我们用手机自拍时, 屏幕中我们看见的是镜子中的自己,并不是别人眼中的自己哦. 那拍出来的图片也会有这个 exif information 按理说我们在拍摄时屏幕出现的结果就应该是最终图像的结果,但是自拍 = 镜子中的你,显然有点怪,自己看不起怪,别人看就怪怪的 所以一般上遇到这类的图片我们需要 flip, 反向回去. 上面 2 个 refer 是说 canvas 如果做到这个效果, 在 crop 图的时候可以用上. asp.net core 用 Magick.NET 这个库,里头也是有 .flip() 这个功能. 注 :不同手机对图片的处理是不同的 比如 iphone 自拍是没有 2,4,5,7 的,iphone 会先 flip 然后在 rotate 然后修改掉 exif, 比如你自拍 2, iphone 输出的图片是 3