aboutsummaryrefslogtreecommitdiffstats
path: root/src/exiv2wrapper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Always write extracted previews as binary files.Olivier Tilloy2011-07-301-1/+1
| | | On windows this is necessary, otherwise the data written on disk is corrupted and results in bogus image files.
* Added an iptc_charset property to the ImageMetadata class,Olivier Tilloy2010-12-201-0/+14
| | | to get, set and delete the (optional) IPTC charset.
* Merged latest changes from trunk.Olivier Tilloy2010-12-171-2/+33
|\
| * Try and decode Exif.Photo.UserComment according to its charset if specified.Olivier Tilloy2010-12-121-2/+18
| |
| * Fix build against libexiv2 0.21.Olivier Tilloy2010-12-021-0/+15
| | | | | | This latest release (2010-12-01) changed some public APIs, hence the need for conditional code.
* | Functions in the xmp module to register and unregister custom namespaces.Olivier Tilloy2010-11-291-0/+59
|/
* Complete implementation of the EXIF thumbnail, including write accessors.Olivier Tilloy2010-11-221-0/+16
|
* Access to the read-only properties of the EXIF thumbnail optionally embedded ↵Olivier Tilloy2010-11-211-0/+49
| | | | in an image.
* Use the typename from the XMP datum when availableOlivier Tilloy2010-11-211-2/+2
| | | instead of relying on the static type information, that may be incomplete.
* Throw an exception instead of silently failing when unable to parse the raw ↵Olivier Tilloy2010-11-171-3/+19
| | | | | | value for EXIF and IPTC tags. Note that parsing never fails for XMP tags. Added corresponding unit tests.
* Sanity check when setting the parent image of a tag:Olivier Tilloy2010-08-241-2/+26
| | | if it’s already the same parent, don’t do anything.
* Fixed some harmless compilation warningsOlivier Tilloy2010-05-301-2/+6
| | | (thanks to Rob Healey for pointing them out).
* Don't copy the metadata internally, just keep a pointer to it.Olivier Tilloy2010-05-241-31/+28
| | | This should speed up the reading and writing of metadata.
* Get, set and delete the image comment.Olivier Tilloy2010-05-211-0/+19
|
* Attach the image's XmpData to a tag when it is assigned to an image.Olivier Tilloy2010-05-201-41/+36
| | | | Remove redundant code that would set the value of a tag twice (in the tag itself, and in the image). Remove the now useless metadata attribute.
* Moving around the code that writes IPTC tag values,Olivier Tilloy2010-05-201-53/+43
| | | there is no need for it to be in its own static function now.
* Attach the image's IptcData to a tag when it is assigned to an image.Olivier Tilloy2010-05-191-7/+9
| | | | Remove redundant code that would set the values of a tag twice (in the tag itself, and in the image). Remove the now useless metadata attribute.
* Attach the image's ExifData to a tag when it is assigned to an image.Olivier Tilloy2010-05-191-7/+9
| | | | Remove redundant code that would set the value of a tag twice (in the tag itself, and in the image). Remove the now useless metadata attribute.
* Do not copy a subset of the IptcData, instead pass around a pointer to it ↵Olivier Tilloy2010-05-181-94/+87
| | | | | | | and do the required arithmetics. This avoids leaking memory when instantiating an IptcTag from existing metadata. Factored out the code that sets the values of an IptcData for a given key (used in two places). Got rid of the copy of the FindIptcdatum unary predicate.
* Free the allocated memory when deleting an XmpTag.Olivier Tilloy2010-05-181-1/+11
|
* Free the allocated memory when deleting an IptcTag.Olivier Tilloy2010-05-171-1/+11
|
* Free the allocated memory when deleting an ExifTag.Olivier Tilloy2010-05-171-0/+8
|
* Use the proper delete[] operator to deallocate the memory block pointed by ↵Olivier Tilloy2010-04-161-1/+1
| | | | _data.
* Do not leak the data passed to ImageMetadata.from_buffer.Olivier Tilloy2010-04-141-6/+16
|
* getDataBuffer() now releases the GIL to allow other python threads to runOlivier Tilloy2010-03-171-1/+10
| | | while reading image data.
* New data_buffer() method to get the image buffer.Olivier Tilloy2010-03-171-0/+45
|
* Instantiate an image from a data buffer.Olivier Tilloy2010-03-161-2/+22
|
* Comment to explain the exception handlingOlivier Tilloy2010-03-161-0/+6
| | | outside of the Py_{BEGIN,END}_ALLOW_THREADS block.
* Clean error handling outside of the Py_{BEGIN,END}_ALLOW_THREADS blocks.Olivier Tilloy2010-03-161-9/+37
| | | This will effectively throw exceptions instead of nasty segmentation faults.
* No need for a boolean to test for error.Olivier Tilloy2010-03-161-3/+1
|
* Copy the error instead of instantiating a new one from its code.Olivier Tilloy2010-03-161-4/+4
|
* Raise an IOError when trying to read an image of an unknown type.Olivier Tilloy2010-02-101-16/+31
|
* Copy metadata to another image.Olivier Tilloy2010-01-221-0/+13
| | | From an original patch by Ilpo Nyyssönen (http://iny.iki.fi/).
* Read-only access to the mime type of an image.Olivier Tilloy2010-01-221-0/+6
| | | From an original patch by Matt Mossholder (mattcm@mourneblade.mossholder.com).
* Read-only access to the dimensions of an image.Olivier Tilloy2010-01-221-0/+12
| | | From an original patch by Matt Mossholder (mattcm@mourneblade.mossholder.com).
* Updated error codes translation to the errors defined in libexiv2 0.19.Olivier Tilloy2010-01-211-24/+206
|
* Removed a compatibility workaround.Olivier Tilloy2010-01-211-6/+1
| | | This version requires libexiv2 >= 0.19 anyway.
* Removed handling of unused custom exceptions.Olivier Tilloy2010-01-211-8/+0
|
* Removed some unused legacy code.Olivier Tilloy2010-01-211-95/+0
|
* Fixed adding values to repeatable IPTC tags.Olivier Tilloy2010-01-211-1/+3
|
* Always provide the EXIF interpreted value if possible.Olivier Tilloy2010-01-171-6/+6
|
* Preview::writeToFile dumps the preview data to a file.Olivier Tilloy2010-01-081-0/+10
|
* Preview (thumbnail) extraction.Olivier Tilloy2010-01-081-0/+41
| | | Read-only at the moment.
* Updated copyright headers for 2010.Olivier Tilloy2010-01-051-1/+1
|\
| * Updated copyright headers for 2010.Olivier Tilloy2010-01-051-1/+1
| | | | | | Happy new year!
* | Fix compilation against libexiv2 0.19.Olivier Tilloy2010-01-041-7/+31
|/ | | | Copied the FindIptcdatum class from src/iptc.cpp to replace Exiv2::FindMetadatumById::FindMetadatumById.
* Replaced all data read checks by a custom macro.Olivier Tilloy2010-01-021-84/+26
|
* Always check if the metadata has been read beforehand.Olivier Tilloy2010-01-021-119/+115
|
* Also release the GIL when opening a file,Olivier Tilloy2009-12-241-0/+14
| | | this is a potentially long-running blocking IO operation.
* Release the GIL while reading/writing metadata.Olivier Tilloy2009-12-211-0/+14
| | | | | This allows other python threads to continue running while costly IO operations are being performed. Also, this is my in-flight commit (somewhere between Barcelona and Paris).