Read/Write metadata(including EXIF, IPTC, XMP), comment and ICC Profile embedded in digital images.
Questions tagged [pyexiv2]
38 questions
6
votes
3 answers
How to use gexiv2 in python?
I just compiled exiv2 and gexiv2 for my debian machiene and now I want to start working with gexiv2 to edit IPTC data using python. The gexiv2 website presents the following line of code:
from gi.repository import GExiv2
But that already results…

JasonTS
- 2,479
- 4
- 32
- 48
5
votes
1 answer
How to extract exif data from a PNG photo?
I am on OSX, running python and trying to extra EXIF data from a large set of images in my library.
I've been using Pillow so far with my JPG photos and it works like a charm.
However, I stumbled on the first PNG photo I hit.
I am able to view a lot…

sramij
- 4,775
- 5
- 33
- 55
5
votes
1 answer
how maintain exif data of images resizes using PIL
when I try to resize(thumbnail) an image using PIL , it destroys the exif data associated with the image,
How can I save it.
I resize the image and upload it to the cloud as image buffer.
file_path = '...'
file_name = '...'
im = Image.open(…

Jisson
- 3,566
- 8
- 38
- 71
5
votes
3 answers
pyexiv2 with homebrew python 2.7.4
I have just installed python (2.7.4) with brew on my macbook pro (10.7.5).
I also installed exiv2 and pyexiv2 with brew.
When I import pyexiv2 from the python interpreter, I got the following error :
Fatal Python error: Interpreter not initialized…

jean
- 251
- 4
- 14
5
votes
2 answers
How to install python library Pyexiv2 and Gexiv2 on osx 10.6.8?
Does anyone knows how to install the python library pyexiv2 and/or Gexiv2 on Mac OSX, ideally on version 10.6.8 and in a virtualenv?
user1919510
5
votes
2 answers
Geotagging JPEGs with pyexiv2
I am geotagging JPEGs using the pyexiv2 Python module using code I found in another SO answer (see: What is the best way to geotag jpeg-images using Python?) and I have a question about the GPSTag value.
The code given in the answer has the…

furtypajohn
- 287
- 4
- 9
5
votes
2 answers
Python native library to read metadata from videos?
Is there a Python library to read metadata (camera model, time created, etc ...) from video files? The Perl equivalent is "exiftool." I checked pyexiv2, but it doesn't have video support like exiftool does. Thanks.

ensnare
- 40,069
- 64
- 158
- 224
2
votes
1 answer
/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python3.7/dist-packages/pyexiv2/lib/libexiv2.so) colab goo
I tried to read the metadata of an image in google colab but I got an error of GLIBC_2.29 not found .
Here is my script :
import pyexiv2
m1 = pyexiv2.ImageMetadata( '/content/H0002.png' )
m1.read()
the error…

ELOUTMADI
- 59
- 1
- 6
2
votes
1 answer
Error with pyexiv2. How to apply metadata to jpg image?
I am writing a python3-based script designed to automate the process of applying geo-tags to .jpg images based on extracted EXIF metadata.
PIL is used to open images and read the EXIF metadata and pyexiv2 is used to apply geo-tags to the .jpg…

ljeasson
- 43
- 5
2
votes
1 answer
Installing py3exiv2 on macOS issues
I would like to calibrate a camera lens, to do this, I am following the instructions here. According to the instrucitons, I need the python3-exiv2 dependency from here.
When I try to run this:
pip3 install py3exiv2
I get this:
Collecting py3exiv2
…

6135105654
- 202
- 2
- 5
- 13
2
votes
1 answer
pyexiv2 not found but already installed with homebrew on Mac OSX El Capitan
I have installed pyexiv2 on OSX El Capitan with homebrew but when trying to use it, it is not found.
$ brew install pyexiv2
Warning: pyexiv2-0.3.2_1 already installed
$ python mapillary_tools-master/python/geotag_from_gpx.py photos…

Nighto
- 3,994
- 3
- 23
- 28
2
votes
1 answer
Installing python package in virtualenv without using pip or easy_install
I'm trying to install pyexiv2 in a virtualenv. Unfortunately it's an old package and neither pip nor easy_install seem to support it. I installed it on my non-virtualenv python just fine, by running the windows installer on the pyexiv download…

Alex S
- 4,726
- 7
- 39
- 67
2
votes
1 answer
Exif Direction of Picture
I have a bunch of Geotagged pictures that I'm accessing in python using pyexiv2. It's working great except I don't understand what the "GPSImgDirection" value is giving. Basically, it's two great big numbers, for example:
2147483647/8613474
What…

Alex S
- 4,726
- 7
- 39
- 67
2
votes
1 answer
image title tag missing in PIL and pyexiv2 after Lightroom export
Lightroom allows to modify photo's Title and ImageDescription tags. Title is a non-conform EXIF tag, so it is saved it somewhere else, but not in the EXIF tags directly.
I want to parse image tags using Python. I tried using PIL and pyexiv2. Neither…

Pavlo Dyban
- 1,297
- 2
- 15
- 28
1
vote
2 answers
Can't get GPS coordinates from from EXIF data in python (Pillow or pyexiv2)
I'm trying to extract GPS coordinates from a JPG image but I don't get much information with pillow.
This is my 1st attempt:
from PIL import Image
from PIL.ExifTags import TAGS
my_img = Image.open("IMG_0547.jpg")
exif_data = my_img.getexif()
for…

Ax M
- 330
- 3
- 15