Questions tagged [exiv2]

Exiv2 is a C++ library and a command line utility to manage image metadata. It provides read and write access to the Exif, IPTC and XMP metadata of images in various formats.

48 questions
10
votes
1 answer

ndk-build outputs ‘error adding symbols. File in wrong format’

I want to use the exiv2 library written in C++ in my Android project. To do that, I try to cross-compile the library using the Android NDK. For cross-compiling, I follow the presented below steps: Add the NDK path to variable…
rocksparrow
  • 185
  • 1
  • 3
  • 11
6
votes
1 answer

Is XMP metadata supported in PNG images?

I've been trying to understand how XMP metadata worked on PNG files for the last few hours but couldn't quite wrap my head around it. If I create a PNG image with Photoshop, save it and open the File Info dialog (File > File Info or…
Uflex
  • 1,396
  • 1
  • 13
  • 32
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
2 answers

How to install GExiv2 on a virtualenv?

I installed this library with: sudo apt-get install libexiv2-dev libgexiv2-2 gir1.2-gexiv2-0.4 And I was able to load the Python module: from gi.repository import GExiv2 The problem comes with virtualenv. I need to use this library inside a…
Diego Navarro
  • 9,316
  • 3
  • 26
  • 33
4
votes
3 answers

Is there anyway (commandline tools) to calculate MD5 hash for .NEF (also .CR2, .TIFF) regardless any metadata?

Is there anyway (commandline tools) to calculate MD5 hash for .NEF (also .CR2, .TIFF) regardless any metadata, e.g. EXIF, IPTC, XMP and so on? The MD5 hash should be same once we update any metadata inside the image file. I searched for a while, the…
3
votes
2 answers

Use exiv2 or imagemagick to remove EXIF data from stdin and output to stdout

How can I pipe an image into exiv2 or imagemagick, strip the EXIF tag, and pipe it out to stdout for more manipulation? I'm hoping for something like: exiv2 rm - - | md5sum which would output an image supplied via stdin and calcualte its…
ensnare
  • 40,069
  • 64
  • 158
  • 224
3
votes
3 answers

How to escape php exec() command with quotes

I use the Exiv2 command line tool on Linux to edit image metadata like so: exiv2 -M"set Iptc.Application2.Caption String This is my caption....." modify IMG.jpg I want to execute this from PHP, using a caption provide by a user. This will work if…
Liam
  • 19,819
  • 24
  • 83
  • 123
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
0 answers

Installing py3exiv2 on Windows with pip

I tried some exif/iptc/xmp libraries for Python3, but they are all neither mature nor fully-fledged. exifread can only read exif information iptcinfo3 is not properly ported to Python3 Therefore, i tried to use py3exiv2 on Windows 7/10. However, i…
Franky1
  • 402
  • 6
  • 15
2
votes
2 answers

getting SIGSEGV in std::_List_const_iterator::operator++ whilst using jni

I'm using jni to access the exiv2 API in my Java project and I'm getting a SIGSEGV error in std::_List_const_iterator::operator++. I'm uncertain how to fix this error. I've tried using high -Xmx values as well as running on both jdk1.6.0 (server and…
HJED
  • 957
  • 1
  • 8
  • 16
2
votes
0 answers

Exiv2 for iOS: XMP toolkit support not compiled in

I am building an iOS app that takes picture, modify the picture, and embed XMP metadata to the picture. The problem lies in writing the XMP part. After the picture is saved in JPEG, I re-open the picture using Exiv2, write XMP, and re-save the JPEG.…
Kevin
  • 321
  • 1
  • 8
1
vote
0 answers

How do I properly execute or call a Msys2 Mingw64 application from within Powershell 7+ (Outside of bash)?

I downloaded and installed MSYS2, as well as some packages via Pacman. I also installed exiv2 from here. I am developing a Pwsh module that will be manipulating metadata, and I want to call exiv2 from within Pwsh. I tried copying exiv2.exe and…
fmotion1
  • 237
  • 4
  • 12
1
vote
2 answers

Getting std::bad_alloc when trying to open image with exiv2

Hello I'm trying to read metadata from image using exiv2, but when opening the file I get the following error: Microsoft C++ exception: std::bad_alloc I'm using default c++ visual studio 2019 compiler. #include #include…
Au Gus Tas
  • 23
  • 5
1
vote
1 answer

py3exiv2 install on CentOS

Does anybody successfully install py3exiv2 on CentOS? I found this instructions: https://dev.exiv2.org/projects/exiv2/wiki/BuildingPy3Exiv2onCentos and followed them, however it looks like it's old. I tried different solutions from the internet but…
bugZ
  • 466
  • 5
  • 19
1
vote
1 answer

Can't set image orientation with ImageMagick

I'm trying to set a JPEG file's image orientation in ImageMagick, but not seeing any visible changes. In PHP via the Imagick library, something like this seems to have no effect on the image written out: $image->setImageOrientation( 8 ); // 8 ==…
NeilK
  • 778
  • 1
  • 6
  • 15
1
2 3 4