exif

Saving EXIF data to JPEG - Swift

丶灬走出姿态 提交于 2021-02-19 15:33:40
问题 I am currently trying to shoot photos within an app with the UIImagePickerController, saving it to the local database and upload them later to a service. But it seems that the metadata (especially EXIF) are not bundled with this image automatically. I've tried to extract it like this: func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { self.imageDelegate?.saveImage( image: info[UIImagePickerControllerOriginalImage] as! UIImage,

Saving EXIF data to JPEG - Swift

三世轮回 提交于 2021-02-19 15:33:28
问题 I am currently trying to shoot photos within an app with the UIImagePickerController, saving it to the local database and upload them later to a service. But it seems that the metadata (especially EXIF) are not bundled with this image automatically. I've tried to extract it like this: func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { self.imageDelegate?.saveImage( image: info[UIImagePickerControllerOriginalImage] as! UIImage,

Copy an image and preserve its EXIF/IPTC data with PHP imageCreateFromJpeg?

三世轮回 提交于 2021-02-16 05:55:07
问题 I having some problems with an image that has EXIF/IPTC data stored in it. When I use imageCreateFromJpeg (to rotate/crop or etc) the newly stored file doesn't preserve the EXIF/IPTC data. My current code looks like this: <?php // Before executing - EXIF/IPTC data is there (checked) $image = "/path/to/my/image.jpg"; $source = imagecreatefromjpeg($image); $rotate = imagerotate($source,90,0); imageJPEG($rotate,$image); // After executing - EXIF/IPTC data doesn't exist anymore. ?> Am I doing

How to get raw jpeg data (but no metatags / proprietary markers)

偶尔善良 提交于 2021-02-11 13:03:09
问题 I want to get raw jpeg data - no metadata. I'm very confused looking at the jpeg "standards". How correct is my understanding of the marker "tree"? 0xFFD8 - Identifies the file as an image 0xFFE? - EXIF, JFIF, SPIFF, ICC, etc 0x???? - the length of the tag 0xFFD8 - Start of Image 0xFFE0 - should follow SOI as per spec, but often preceded by comments ??? 0x???? - Matrices, tags, random data ??? There are never other markers in-between these markers? Or these include the matrices and such?

How do I convert a CVPixelBuffer / CVImageBuffer to Data?

五迷三道 提交于 2021-02-10 15:57:14
问题 My camera app captures a photo, enhances it in a certain way, and saves it. To do so, I get the input image from the camera in the form of a CVPixelBuffer (wrapped in a CMSampleBuffer). I perform some modifications on the pixel buffer, and I then want to convert it to a Data object. How do I do this? Note that I don't want to convert the pixel buffer / image buffer to a UIImage or CGImage since those don't have metadata (like EXIF). I need a Data object. How do I get one from a CVPixelBuffer

How do I convert a CVPixelBuffer / CVImageBuffer to Data?

南笙酒味 提交于 2021-02-10 15:55:12
问题 My camera app captures a photo, enhances it in a certain way, and saves it. To do so, I get the input image from the camera in the form of a CVPixelBuffer (wrapped in a CMSampleBuffer). I perform some modifications on the pixel buffer, and I then want to convert it to a Data object. How do I do this? Note that I don't want to convert the pixel buffer / image buffer to a UIImage or CGImage since those don't have metadata (like EXIF). I need a Data object. How do I get one from a CVPixelBuffer

Extracting EXIF data with JavaScript

强颜欢笑 提交于 2021-02-08 19:54:29
问题 I'm evaluating image upload techniques using Canvas for a mobile web app. The sticking point is reading EXIF data client-side. Other discussions on this site point towards the excellent Blueimp JavaScript Image Load . I particularly want to extract from EXIF: date & time of photo taken Geopositioning - latitude & longitude of photo taken Testing the Blueimp script on Firefox v.33.1 on Windows Vista using a photo taken on an iPhone (with geo data), it successfully extracts all the EXIF data

JpegBitmapEncoder.Save() throws exception when writing image with metadata

帅比萌擦擦* 提交于 2021-02-05 07:31:38
问题 I'm building a WPF desktop app to help me organize photos to post to Facebook. Here's my code for creating a copy of a photo at a new location with a caption (EXIF + IPTC + XMP) added: private void SaveImageAs(string currPath, string newPath, bool setCaption = false, string captionToSet = "") { System.IO.FileStream stream = new System.IO.FileStream(currPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); JpegBitmapDecoder decoder = new JpegBitmapDecoder(stream, BitmapCreateOptions.None

PHP Fatal error: Call to undefined function exif_imagetype()

橙三吉。 提交于 2021-01-29 15:52:04
问题 I got a photo competition that seems to work fine but when I upload a photo I get a blank screen. I checked the error log and found this: PHP Fatal error: Call to undefined function exif_imagetype() in /home/fbtabvhk/public_html/pinkdrive_selfie/contest/libs/upload/save.php on line 27 This is the code on line 27: if (exif_imagetype($_FILES['files']['tmp_name'][0]) === FALSE) 回答1: You have to have the exif extension compiled and enabled for this function to work. This extension has good

Dropzone is modifying my image before sending it

蹲街弑〆低调 提交于 2021-01-29 08:39:41
问题 I am facing a problem using Dropzone with an image: Dropzone is sending a file to my server that is different from the original file. I am using the library from the CDN https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.7.0/dropzone.min.js. The file I send is https://picciao.com/img/photo-1.jpg The file I receive on my server is https://picciao.com/img/products/k1fDK7MRp40c3TVwPOu4FZOO.jpg As you can see, the image hasn't the same orientation. I do not understand where Dropzone is modifying