exiv2

Exiv2 in 64-bit (or another EXIF writer)

I need a non-destructive way of adding EXIF tags to jpeg images from .NET code. So far I have found Exiv2 and the .NET wrapper Exiv2net that works well when adding or updating tags. However, my code needs to run on a 64-bit machine (and compiled for 64-bit due to other reasons) and it seems to me that the Exiv2 code only compiles in 32-b...

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 the user enters no special characters: exec('/usr/local/bin/exiv2 -M"set Iptc.Applicatio...