aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Implemented feature request tracked by bug #149212 (Add access to tag ↵Olivier Tilloy2007-10-103-0/+24
| | | | labels): added method tagDetails(key) to class Image that returns a tuple containg the tag name and its description.
* Implemented feature request tracked by bug #147534 (Provide access to ↵Olivier Tilloy2007-10-041-0/+17
| | | | interpreted data): added method interpretedExifValue(key) to class Image that returns the interpreted value of an EXIF tag as displayed by the exiv2 command-line tool.
* Fixed bug #146323 (Multi value fields are broken): when a EXIF tag value is ↵Olivier Tilloy2007-10-031-2/+5
| | | | not well formed, containing several short values separated by spaces (e.g. "2 3 4 5"), keep only the first of these values.
* Fixed bug #146313 (passing the filename to the Image constructor as unicode ↵Olivier Tilloy2007-09-281-1/+1
| | | | fails): if filename is passed as unicode, it is converted to a regular string.
* Added support for DESTDIR in SConscript for installation. This will ease the ↵Olivier Tilloy2007-09-271-10/+19
| | | | creation of a Debian package (feature request by Michal Cihar, see http://www.sirena.org.uk/log/?p=58)
* Explicitely returning the tag types as C++ strings.Olivier Tilloy2007-09-181-6/+6
|
* Fixed a bug reported by Damon Lynch: due to interface changes for exceptions ↵Olivier Tilloy2007-09-161-1/+7
| | | | management in libexiv2 0.13, libpyexiv2 would not compile against versions >= 0.13.
* When setting a datetime or time tag value, truncate the unused information ↵Olivier Tilloy2007-09-161-0/+16
| | | | (microseconds).
* Updated documentation.Olivier Tilloy2007-09-101-7/+1
|
* Updated the docstring documentation of module pyexiv2.Olivier Tilloy2007-08-271-15/+75
|
* Internally renamed methods getAvailableExifTags() and getAvailableIptcTags() ↵Olivier Tilloy2007-03-303-8/+12
| | | | | | to exifKeys() and iptcKeys(). Changed the type of exception raised when trying to get a value corresponding to an invalid IPTC key (TypeError, to comply with http://docs.python.org/ref/sequence-types.html).
* Removed methods isExigTagSet() and isIptcTagSet() as they are now useless ↵Olivier Tilloy2007-03-303-33/+0
| | | | thanks to exception management.
* Changed the type of exception raised when trying to get a value ↵Olivier Tilloy2007-03-302-6/+7
| | | | corresponding to an invalid key (TypeError, to comply with http://docs.python.org/ref/sequence-types.html).
* Added methods cacheAllExifTags() and cacheAllIptcTags() that read and cache ↵Olivier Tilloy2007-03-291-0/+8
| | | | | | all the tag values (to be called in a separate thread for applications that need to access all the tags anyway, will speed up subsequent access). Note: on my machine, tests do not show any obvious performance improvement as reading and converting a tag value to a Python type seems instantaneous anyway.
* Changed the name of methods getAvailableExifTags() and ↵Olivier Tilloy2007-03-291-2/+2
| | | | getAvailableIptcTags() to exifKeys() and iptcKeys().
* Getters and setters for EXIF and IPTC tags are now private (but beware! ↵Olivier Tilloy2007-03-293-30/+34
| | | | Python's concept of privacy does not totally forbid access to those members, it just makes them less straightforward), from the client's point of view, metadata should always be accessed using operator [].
* Internal accessor __setitem__ now handles tuples to be consistent with ↵Olivier Tilloy2007-03-271-8/+13
| | | | __getitem__ when dealing with repeatable IPTC tags (but passing it a list of values will also work, the list being internally converted into a tuple).
* Internal accessor __getitem__ now returns a tuple (immutable) when ↵Olivier Tilloy2007-03-271-0/+2
| | | | | | requesting the values of a repeatable IPTC tag. Updated the todo list.
* Added a __delitem__(key) method to class Image in order to allow the use of ↵Olivier Tilloy2007-03-181-2/+25
| | | | the dictionary metaphor for write access to metadata tags.
* Added a __setitem__(key, value) method to class Image in order to allow the ↵Olivier Tilloy2007-03-181-0/+54
| | | | | | use of the dictionary metaphor for write access to metadata tags. TODO: define the corresponding __delitem__(key) method for completeness.
* Added a __getitem__(key) method to class Image in order to allow the use of ↵Olivier Tilloy2007-03-151-0/+26
| | | | | | the dictionary metaphor to access metadata tags. TODO: define the corresponding __setitem__(key, value) and __delitem__(key) methods for completeness.
* Changed the Python exception type an Exiv2::Error(KEY_NOT_FOUND, ...) is ↵Olivier Tilloy2007-03-151-1/+1
| | | | converted to (now a KeyError) for consistency with Python conventions.
* The python part of the binding now correctly handles the possibility for an ↵Olivier Tilloy2007-03-133-10/+34
| | | | IPTC tag to be repeatable.
* Modified method Image::deleteIptcTag(...) to take into account the ↵Olivier Tilloy2007-03-132-9/+20
| | | | possibility for an IPTC tag to be repeatable.
* Modified methods Image::getIptcTag(...) and Image::setIptcTag(...) to take ↵Olivier Tilloy2007-03-122-23/+51
| | | | into account the possibility for an IPTC tag to be repeatable.
* Modified the behaviour of Image::getAvailableIptcTags(): it now returns a ↵Olivier Tilloy2007-03-082-4/+6
| | | | list without duplicates. This is a prerequisite to the implementation of an Iptc handler that can access all the instances of a given repeatable key.
* Added a recognized format for string to datetime conversion.Olivier Tilloy2007-03-041-1/+1
|
* Updated the C++ class' methods comments.Olivier Tilloy2007-01-201-24/+29
|
* Added two methods to class Image, isExifTagSet() and isIptcTagSet(), to ↵Olivier Tilloy2007-01-203-0/+32
| | | | determine whether a tag is set.
* Complete switch to C++/Python exceptions: methods do not return empty ↵Olivier Tilloy2007-01-203-77/+48
| | | | strings or tuples anymore, they throw an exception instead.
* Defined a new custom IO exception for when trying to access the metadata ↵Olivier Tilloy2007-01-201-60/+24
| | | | before the method readMetadata() has been called.
* Basic handling of Exiv2 exceptions which are now converted to corresponding ↵Olivier Tilloy2007-01-203-204/+162
| | | | Python exceptions.
* Added a fixme in the python source.Olivier Tilloy2007-01-201-2/+2
| | | | Updated the todo list.
* Times are now correctly handled by the methods Image::getIptcTagValue(...) ↵Olivier Tilloy2007-01-181-15/+6
| | | | and Image::setIptcTagValue(): they take into account a potential offset from UTC in an elegant manner (using the previously defined class FixedOffset).
* Removed useless history in file headers (what use is it when using a VCS ↵Olivier Tilloy2007-01-186-16/+0
| | | | anyway?).
* Added a concrete subclass of datetime.tzinfo, FixedOffset, to represent ↵Olivier Tilloy2007-01-181-0/+78
| | | | offsets from UTC for local times (will be used in the time representations of IPTC tag values).
* Added method setIptcTagValue() to class Image in the higher-level binding ↵Olivier Tilloy2007-01-171-1/+36
| | | | (still not complete).
* Utility functions StringToDate(string) and StringToTime(string) now ↵Olivier Tilloy2007-01-171-70/+52
| | | | correctly handle the IPTC date and time formats as returned by exiv2.
* Implemented utility function StringToTime(string) (could be improved but ↵Olivier Tilloy2007-01-161-3/+47
| | | | | | should work fine). See the first item of the todo list about exiv2's format for IPTC dates and times.
* Moved the todo list out of the source directory where it did not belong.Olivier Tilloy2007-01-161-5/+0
|
* Updated the todo list.Olivier Tilloy2007-01-101-1/+1
| | | | Minor changes in the README file.
* Added utility functions: StringToDate(string) and StringToTime(string) (this ↵Olivier Tilloy2007-01-101-5/+88
| | | | | | one needs implementing). Added method getIptcTagValue() to class Image in the higher-level binding: uses python native types and classes to type the values of IPTC tags.
* Considerably improved the ascii to datetime conversion for EXIF tags.Olivier Tilloy2007-01-082-8/+36
|
* Updated the todo list.Olivier Tilloy2007-01-086-7/+5
| | | | Fixed a small mistake in the GPL header of several source files.
* Added a very simple python script that demonstrates how to use pygtk to ↵Olivier Tilloy2007-01-071-0/+72
| | | | display the thumbnail data extracted from a picture using the method Image.getThumbnailData().
* Added a very simple python script that demonstrates how to use pyqt to ↵Olivier Tilloy2007-01-071-0/+68
| | | | display the thumbnail data extracted from a picture using the method Image.getThumbnailData().
* Added method Image::setThumbnailFromJpegFile(...) that allows setting the ↵Olivier Tilloy2007-01-074-1/+30
| | | | image thumbnail from a jpeg file.
* Optimized the memory allocation when extracting the thumbnail data from an ↵Olivier Tilloy2007-01-041-2/+4
| | | | image: the returned string containing the actual data is now first allocated and then filled.
* Added and implemented Image::deleteThumbnail() and Image::dumpThumbnailToFile().Olivier Tilloy2007-01-033-15/+69
|
* Implemented Image::setThumbnailData() that sets the thumbnail embedded in an ↵Olivier Tilloy2007-01-032-8/+16
| | | | image from raw jpeg data.