Questions tagged [exif]
Exchangeable image file format is a standard for storing metadata such as camera, lens, and geo information in JPEG and TIFF files
1,831
questions
0
votes
0
answers
50
views
WPF BitmapImage complains about EXIF corrupt metadata
I am using a Image control to show/load images in WPF. My jpg images are exif files.
My WPF program is complaining about corrupt exif metadata header and dont show that image in image control. There ...
0
votes
0
answers
29
views
cwebp command remove meta data of image in converting
I used cwebp for converting my images to webp with this command:
cwebp /Temp/Exmaple.jpg -o /Temp/Converted.webp
some of images captured with phone camera have meta data of orientation, in converting ...
0
votes
1
answer
85
views
Android write problems PermissionError: [Errno 13] Permission denied
I wrote a script that updates exif data of the WhatsApp images. I wanted to run it on my Android phone using Pydroid app, however I end up with the PermissionError: [Errno 13] Permission denied error.
...
0
votes
0
answers
26
views
How can I store data in a Custom Tag in EXIF with React-Native and read it with Python?
Goal: I need to capture a photo with a camera and store data on it (An Array of strings is sufficient). Then, after transfer the photo to a desktop, I need to retrieve this data.
Approach: I am making ...
0
votes
0
answers
53
views
How can I obtain an image's PPI in JavaScript if it's unavailable in EXIF Data?
I have a tool in frappe-framework that permits image uploads by checking, the width[=1050px], height[=1500px] and filesize [between 300KB to 3000KB] of an image.
Along with the existing requirements I ...
0
votes
0
answers
49
views
How iOS how to get exif, markernote data
I use the iOS sound method to read these data, but I found that all these data are some regular data, and then the new data is correct such as retest-specific data I can't read, and I don't know where ...
0
votes
0
answers
18
views
Add custom keywords in EXIF of .jpg files
I'm trying to add custom EXIF in .jpg files in a folder. I don't have errors but when I try to open the EXIF manually I don't see my adds.
The first block is the window and the second is the add to ...
0
votes
0
answers
37
views
How do I parse the offset to the second ifd table (tiff files)
For a project I am writing an parser which is just supposed to extract one single exif tag from an image file (for efficiency reasons, in the end its supposed to parse the DateTimeOriginal Tag out of ~...
0
votes
1
answer
33
views
No Exif XP tags using Piexifjs
I am trying to read EXIF data from JPG file using Piexifjs in React
I have updated the metadata using Zoner - specifically Title = TitleTest; Description = DescriptionTest; Keywords = Keyword1, ...
0
votes
0
answers
143
views
How to store metadata into a PNG or JPG with cv2, and restore it later?
How to save a string metadata to a PNG or JPG file written with cv2?
It could be EXIF or any other format, as long as we can retrieve it later, like in the example below.
Note: linked but not ...
0
votes
1
answer
22
views
NodeJS exif returns undefined
Im trying to get exif info from my images. So I've made some scratch. It works but it does not work while using it in the loop
Hi. Im trying to get exif info from my images. So I've made this
const fs ...
1
vote
2
answers
316
views
Adding EXIF GPS data to .jpg files using Python and Piexif
I am trying to write a script that adds EXIF GPS data to images using Python. When running the below script, I am getting an error returned from the piexif.dump() as follows:
(venv) C:\projects\geo-...
1
vote
0
answers
47
views
PHP : exiftool using shell_exec -filemodifydate not applying (but is in bash)
Using PHP to run exiftool on an image.
My code is :
// $newEpoch is defined by user input
$date = date('Y:m:d G:i:s', $newEpoch);
shell_exec("exiftool '-DateTimeOriginal={$date}' '-FileModifyDate=...
-1
votes
1
answer
36
views
iOS Identifying a photo taken on smartphone / digital camera vs downloaded from a messenger
G'day
I have a task to process images and videos from a user's photo library (iOS), exclude the assets potentially downloaded or saved from a messenger app. Now of course it's not a perfect solution ...
0
votes
0
answers
41
views
Is there a way to date stamp images with based on EXIF orientation using Python?
I have the following function that stamps images using the date field in the exif file. This code works fine for images that have an orientation of 1. See attachmentPhoto 4 these images are stamped ...
1
vote
1
answer
162
views
exifread.process_file() throws "KeyError: 'hdlr'" and "NoParser: hdlr Output is truncated." for a HEIC image even though exifread can deal with HEIC
Taking the guide from ExifRead 3.0.0 which says that it can deal with HEIC images, and with the examples of How to work with HEIC image file types in Python, I tried to read metadata of a HEIC file:
p ...
0
votes
1
answer
132
views
Is there any way to convert Exif Byte Orders of a JPG file from Little-endian to Big-endian? [closed]
I have two files and I'm trying to change my second file from Little-endian to Big-endian,
You can see the following examples here:
First File:
$ exiftool FirstFile.JPG | grep "Exif Byte Order&...
0
votes
0
answers
33
views
Coverting jpgs with exif to tiff files
I have jpgs from a drone flight with exif data. I need to convert them to tiff files including the geolocation data. These images are all separate, not an orthomosaic. Pix4D does not seem to work, as ...
0
votes
2
answers
53
views
Android ImagePicker/MediaStore returns rotated image
I know this question has been asked many times but there is no best-case answer to be found.
MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri)
I am retrieving the bitmap from this ...
6
votes
1
answer
278
views
Copy metadata fom one JPEG to another in Go
I'm trying to copy EXIF tags from one JPEG to another, which has no metadata. I tried to do what is described in this comment.
My idea is copy everything from the tags source file until the first ffdb ...
0
votes
0
answers
18
views
Python import statement ModuleNotFoundError [duplicate]
As an absolute beginner, I'm trying my hand at my first python project by following this how-to:
https://blog.matthewgove.com/2022/05/13/how-to-bulk-edit-your-photos-exif-data-with-10-lines-of-python/
...
0
votes
1
answer
92
views
android exif get longtitude and latitude
I used to use the following code to get the address of a picture. And it worked well.
private static AddressVO getAddress(ExifInterface exifInterface, Context context){
if (exifInterface == null){
...
0
votes
0
answers
126
views
Adding GPS tag to Image metadata using python exif module
I have few images that do not have any GPS information (metadata) in the EXIF file. So when I get/read the EXIF information it does not show that as expected. I am trying to add GPS information but am ...
0
votes
0
answers
25
views
Saving Modified NSImage to Disk with Exif Info from Original Image
I'm editing an NSImage which is read from disk.The original image has exif info like the camera make, location etc. When saving the NSImage , this EXIF info is lost. I'm using the following code to ...
2
votes
0
answers
101
views
Predict if Android has stripped-off EXIF metadata
Android has recently released a new Photo Picker for Android that provides a safe, built-in way for users to grant an app access to only selected images and videos instead of their entire media ...
0
votes
0
answers
36
views
Parsing LatLong from EXIF using Flutter
Does anyone have an example of how to parse the GPS coordinates. I'm assuming it would return LatLng from the exif tags in Flutter? I'm embedding it in FlutterFlow as a custom action so I can capture ...
0
votes
1
answer
536
views
Adding GPS location to EXIF using Python (slots not recognised by Windows 10 + nasty workaround required)
I searched for some Python package that is able to read and edit EXIF data. Finally, I got the package exif to work on Windows and Ubuntu (since I use the same scripts in both OS).
I wrote the ...
0
votes
0
answers
14
views
How to integrate libraries from cygwin into eclpise for c/c++
I am trying to integrate the libexif library into a project of mine. I used the cygwin application to install the libexif-doc library.
I'm looking for the static library and header files but can't ...
0
votes
0
answers
44
views
EXIFJS, getdata callback function never calls in React-bootstrap (5) Typescript module
I'm basically using code directly from the exif-js documentation as can be seen here:
var img2 = document.getElementById("img2");
EXIF.getData(img2, function(this: any) {
var allMetaData ...
0
votes
1
answer
43
views
How to get and write non-EXIF tags from JPGs?
I have a jpg dataset labelled through Windows' native "Tags" field. For example, "dog", "table", etc... I've then made a derivative dataset with some transforms, but the ...
0
votes
0
answers
95
views
Attempted to call function \"exif_read_data\"
So I am running a symfony application where I need the exif_read_data(). I have enabled the extension in php.ini file but for some reason the extension is not loaded.
Dockerfile
FROM php:7.3.27-fpm-...
1
vote
1
answer
279
views
How to read image into base64 without losing EXIF data?
I'm trying to read one local image created with a different exif.Orientation based on the degrees that it was rotated.
const exifData = piexif.load(data.toString("binary"));
// Set the ...
1
vote
0
answers
73
views
Writing Exif Data to Amazon S3 Laravel PHP
I'm having trouble writing exif data to my images on upload to Amazon S3. The code below encodes the file type to jpg format, rewrites the exif data and saves it to amazon s3. Although the images are ...
0
votes
0
answers
45
views
Is it possible to copy JPEG metadata from source to destination with libjpeg?
I can see it is possible to load and write JPEG metadata via libjpeg C API.
However, it is asynchronous. Any good approach to simply copy JPEG metadata from source JPEG to destination JPEG?
This is ...
1
vote
0
answers
163
views
How to get the Exif Metadata for the PDF document file in Flutter
With flutter_exif and native_exif lib, i got image file details but it doesn't return details of file format PDF.
2
votes
2
answers
382
views
Either cloning entire metadata from one file to another or simply removing single metadata lines
I am trying to make a file metadata (PDF) identical to another file (PDF). I am on a MacBook Pro and I have installed the exiftool.
While the exfitool is mostly able to do the job, there are few lines ...
0
votes
0
answers
40
views
Trying to extract EXIF, resize tif, then reinsert EXIF
Python novice. I'm trying to retain EXIF tags for a tif image I want to resize and have tried using PIL to do this. I seem to be able extract the EXIF data and resize but the resized file does not ...
1
vote
0
answers
128
views
How to resize a photo while preserving its metadata in ReactJS?
I'm building a ReactJS application where users can upload photos. I want to be able to resize the photos to reduce their file size, but I also want to preserve the original metadata (such as EXIF data)...
0
votes
1
answer
88
views
A Beginner Working on a Real Task with Python and EXIF
Please go easy on me. It is about 3 decades since I coded anything ans I knew nothing about python until yesterday.
I have a a problem that I have been working on. I've gone through various iterations ...
0
votes
0
answers
41
views
How can I get the name of creating or editing software in EXIF/Metadata of an image?
I try to get the name of the software which is used to create or edit an image (jpg, png, tif) by using PHP exif_read_data.
I installed php exif extension and imagemagick on server, but I can get only ...
0
votes
0
answers
42
views
How can I add GPS data to a set of images in R?
I've been trying some ways. One of them is the code below:
library(exifr)
dir_path <- "path/to/directory/images"
gps_df <- data.frame(
file_name = list.files(dir_path, pattern = &...
0
votes
0
answers
87
views
how to write tag and value to image EXIF
I have an unorganised collection of images taken in the field over several years. They could be a valuable asset and reference, if only it were more convenient to find them and some descriptors of the ...
0
votes
1
answer
267
views
How to write DateTimeOriginal tag for a png file in C#
I'm using the awesome MetadataExtractor NuGet package to extract some data from my png and jpg. It works like a charm.
Some of my pictures have missing date data, so I also developped a piece of code ...
0
votes
0
answers
51
views
Use libtiff.NET to read Exif GPSIFD directory and extract GPSLatitude, GPSLongtitude and convert them to decimal values
I'm trying to read the GPSIFD directory of a .tif file, and in particular read GPSLatitude,GPSLongtitude,GPSAltitude and convert them to decimal values.
So far I succeeded to read the GPSIFD, I used ...
1
vote
1
answer
130
views
Exif javascript not returning GPS information while take picture in camera Mobile
We are having the .NET core web app using both dropzone and EXIF to upload picture and find GPS lattitude and longtitude details from the photo.
We created an android app using the same code as ...
0
votes
0
answers
39
views
Trying to use ifstream.read to get data into vector
Trying to read a part of a file into a vector structure.
Specifically trying to read exif data just using standard library.
This code compiles but the vector ("buffer") is empty.
Been ...
0
votes
0
answers
146
views
how to handle horizontal rotation of iOS images with multer-sharp-s3 in Node JS
I encountered a problem with image upload through iOS devices. Every time I take a photo from the phone and try to upload it to my S3 bucket with multer-sharp-s3, it rotates it horizontally. Now I ...
0
votes
1
answer
198
views
Why can't I read EXIF from my loaded UIImage, but still can from NSData?
I have some EXIF stored in a UIImage that I store using NSFileManager writeToFile:atomically:.
Now, when I try to read back the EXIF metadata imageProperties here shows the metadata I expect:
NSData *...
0
votes
0
answers
70
views
EXIF GPS data automatically deleted?
I'm trying to set up a simple GPS check based on the GPS values of the metadata of different images via Exif.
I was using exif.js and retrieved basically all EXIF metadata besides the location ones we ...
2
votes
1
answer
544
views
Picture taken with camera does not contain location data but gallery images do when using image_picker
I have got an app which includes image_picker to allow the user to choose an image from their gallery or take a photo directly within the app. I need the photo to contain location data so I need the ...