Questions tagged [piexif]

28 questions
0
votes
0 answers

Getting a strange error while using browser-image-compression library in Javascript/React

Im trying to compress an image using browser-image-compression (https://github.com/Donaldcwl/browser-image-compression) and PIEXIF tool, but getting an error when I pass the image in which I have added EXIF to the browser-image-compression. This is…
Rohan
  • 75
  • 6
0
votes
1 answer

Trying to extract "DateTimeOriginal" metadata from an image in MM/DD/YYYY HH:MM format

I am trying to extract "DateTimeOriginal" metadata from an image in MM/DD/YYYY HH:MM format, But it isn't working. I tried different approaches but none of them seem to work. 1. Extracting "Date Taken" using ExifTool try: …
VeeyesPlus
  • 57
  • 6
0
votes
2 answers

How to decode `piexif` metadata strings containing both plain text and bytes characters?

I have a string containing both human-readable parts and bytes/control characters (I guess), like the following: weird_string =…
Luca Clissa
  • 810
  • 2
  • 7
  • 27
0
votes
0 answers

what is PiexifJs and is there any good source to learn about it?

I want to get the meta data of an image using PiexifJs but I am not able to and also I am not getting any error If anyone knows the answer or where I can look this up I would appreciate thanks
0
votes
0 answers

Python: Add EXIF data to images based on Excel

I am very new to Python and learning more every day :-). I have been trying to figure out this problem for some time now, but realize that need some help. I am downloading images from a webpage and in the process I am trying to add Exif information…
0
votes
1 answer

Replace thumbnail in EXIF with Python

I'd like to replace the thumbnail in an image file's EXIF. I've tried several libraries: exif, piexif, Pillow/PIL, none were able to write the thumbnail to the EXIF. Few examples from what I've tried so far: import piexif from PIL import…
Robert
  • 131
  • 4
0
votes
1 answer

Python PIL save method rotates image

I have a little issue with saving image with PIL. In my Django project I have the following save method: from PIL import Image class Photo: image = models.ImageField(verbose_name='Photos', upload_to='media/date/photos/', help_text='Photo') …
0
votes
0 answers

Update Metadata Comments in a png file in Python

I am trying to update Metadata Comments(Details -> Description -> Comments) in image files(jpg format) for a bunch of images in directory based on a certain criteria. The metadata comments are of string values separated by spaces. Example of a…
Johnjhang
  • 1
  • 2
0
votes
2 answers

Changing EXIF data of a TIF file affects the rest metadata

I am using piexif library to modify the gps altitude of a tif file's EXIF data. This is my implementation: import piexif from PIL import Image Image.MAX_IMAGE_PIXELS = 1000000000 fname_1='initial.tif' fname_2='new_file.tif' img =…
0
votes
1 answer

add/modify gps coordinates on jpeg Exif using piexifjs

I am using piexifjs to manipulate exif data of jpg images. everything works fine. but when I try to modify the gps longitude and latitudes, I am having some issues. as on https://www.exiv2.org/tags.html, it states the datatype for gps coordinates…
Abraham
  • 12,140
  • 4
  • 56
  • 92
0
votes
2 answers

Importance of Random Letters when Reading EXIF Information Via piexif

I am just getting into python and am specifically using Pillow and piexif to extract and edit EXIF data for bunch of jpegs that I have. I used piexif to extract and read the EXIF data information like ImageDescription, and noticed lots of fields…
0
votes
1 answer

Embed a data inside JPG file without altering the image in python

i have 289 bytes of data that i want to embed to a jpg file. Of course without altering the image. Also, i can extract that data from the image and the picture is still original. To proof the originality, the hash value (SHA 256) of the image before…
ircham
  • 129
  • 13
0
votes
1 answer

How to decode Piexif XPKeywords?

I've been using Piexif to add tags to Jpeg images and that has been going fine. Now I wanted to read the tags an image has and I'm running into a problem. I gave an image the tags (Tag1, Tag2, Tag3) and using this code I'm supposed to be able to…
MarcoB
  • 49
  • 6
1
2