Questions tagged [pyexiv2]

Read/Write metadata(including EXIF, IPTC, XMP), comment and ICC Profile embedded in digital images.

https://github.com/LeoHsiao1/pyexiv2

38 questions
1
vote
0 answers

have "Symbol not found: _PyCMethod_New" when import pyexiv2

I'm trying to copy exif informations from an image tiff to another but I have this error when I importinf pyexiv2. File "test.py", line 359, in import pyexiv2 File…
1
vote
2 answers

Installation of py3exiv2 on macOS Big Sur fails | ERROR: No .egg-info directory found in

I'm trying to install py3exiv2 on macOS Big Sur with pip install py3exiv2 and pip3 install py3exiv2 both of which yield ERROR: No .egg-info directory found in/private/var/folders/gf/g7tsgb6x4l9gyms1jm5kmlsc0000gn/T/pip-pip-egg-info-__dllgi9 Are…
The Singularity
  • 2,428
  • 3
  • 19
  • 48
1
vote
1 answer

AttributeError: module 'pyexiv2' has no attribute 'ImageMetadata' | Python 3.7

I've been trying to run the following code: exif = pyexiv2.ImageMetadata(image_file) exif.read() on Python 3.7.0 and it yields an error AttributeError: module 'pyexiv2' has no attribute 'ImageMetadata' I haven't used pyexiv2 before but the example…
The Singularity
  • 2,428
  • 3
  • 19
  • 48
1
vote
1 answer

Editing xmp tags pyexiv2 modify_xmp does not replace xmp tags correctly

I am trying to write a script that will loop through a large number of images and write new xmp tags based on certain criteria. I am using pyexiv2 to read and modify the 'Xmp.dc.subject' tag. I am able to assign a new set of tags to the image, and…
1
vote
1 answer

Error in using pyexiv2 metadata.read() method

I am trying to follow the tutorials in the pyexiv2 tutorials page But due to some unknown reasons, it refuses to run, and I thought of seeking some advice from you. `#this is my code import pyexiv2 metadata =…
1
vote
0 answers

pyexiv2 get image exif, from_buffer function lead memory leak

I use pyexiv2 library to read image exif info.and I found the ImageMetadata.from_buffer() method will lead memory leak when the image is not intact. But the ImageMetadata() method is ok. The code below is my test code, and when I let it read from a…
1
vote
2 answers

What field contains copyright info in EXIF?

How can I add copyright information to an image using gexiv2? I've read this but couldn't find which field I need to edit for this.
evan54
  • 3,585
  • 5
  • 34
  • 61
1
vote
1 answer

Pyexiv2 with Multiprocessing

I am performing a batch of distortion corrections on images using OpenCV. Unfortunately the output loses the exif metadata. So I am bringing it back using Pyexiv2. def propagate_exif(infile,outfile): import pyexiv2 msrc =…
whatnick
  • 5,400
  • 3
  • 19
  • 35
1
vote
1 answer

EXIF info in Python - libexif

I have been using pyexiv2 to read exif information from JPEG files in python, and noticed that one tag in particular - ExposureTime - is not reported the same by exiv2 as with another exif library, libexif. Any exiv2-based utility I've tried will…
j_marvin
  • 47
  • 3
1
vote
3 answers

Find if an image has EXIF or not

Is it possible to determine whether an image contains exif data or not? I tried using pyexiv2 as follows: import pyexiv2 as pex pex.metadata("test.jpg") metadata.read() print metadata.exif_keys Now if there is no EXIF data, then the last line will…
securecoding
  • 2,763
  • 2
  • 15
  • 14
0
votes
1 answer

Python 3; pyexiv2 v.2.7 can't load exiv2.dll, although it's there

Encountering an JPG image which wouldn't load with pyexiv2 v2.6.4, I upgraded to pyexiv2 v2.7, via pip install, which went through without complaints. Now pyexiv2 doesn't load at all anymore, complaining FileNotFoundError: Could not find module…
virtualnobi
  • 1,140
  • 2
  • 11
  • 35
0
votes
0 answers

pyexiv2 - 'utf-8' codec can't decode

I am trying to read/write some XMP and IPTC metadata into the picture. To do it, I am using py3exiv2 library. I have an issue with some characters (especially German umlauts), where the library throws an exception: UnicodeDecodeError: 'utf-8' codec…
bugZ
  • 466
  • 5
  • 19
0
votes
0 answers

Transfer image comments to new comments after image Compression

Hello I'm working on some code where the image will be compress and transfer the comments from the old image to newly compress image. the compression works smoothly but the transfer of comments in the new image doesn't work and is not showing in the…
VIRUS 471
  • 65
  • 2
  • 7
0
votes
0 answers

Is it possible using pyexiv2 with python3 on MacOS

I need to get metadata from images, the best lib pyexiv2, but i can't install pyexiv2 in python3, Do you have any recommendation?
e y
  • 23
  • 5
0
votes
1 answer

Which library to refer for Iptc4xmpExt in python?

I am currently using iptcExt from pyexiv2 Module but my main requirement is use Iptc4xmpExt and that is not available in pyexiv2, so which library or module I need to import in python to create Iptc4xmpExt meta information?