Skip to content

Commit

Permalink
Updating docs and changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaddison committed Jan 28, 2017
1 parent e8d38b5 commit 63ff686
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/appendices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,21 @@ On GoogleAppEngine, it can't save files on disk. Therefore files must be handled

# transplant
piexif.transplant(jpg_data1, jpg_data2, output)

Invalid EXIF Thumbnails
-----------------------

EXIF data will sometimes be either corrupted or written by non-compliant software. When this happens, it's possible
that the thumbnail stored in EXIF cannot be found when attempting to dump the EXIF dictionary.

A good solution would be to remove the thumbnail from the EXIF dictionary and then re-attempt the dump:

::

try:
exif_bytes = piexif.dump(exif_dict)
except InvalidImageDataError:
del exif_dict["1st"]
del exif_dict["thumbnail"]
exif_bytes = piexif.dump(exif_dict)

8 changes: 8 additions & 0 deletions doc/changes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

1.0.12
------

- Added explicit InvalidImageDataError exception to aid users. Related to https://github.com/hMatoba/Piexif/issues/30.
- Fixed minor issue with tests.
- Removed minor amounts of unused logic.
- Updated .travis.yml for Python and Pillow versions.

1.0.11
------

Expand Down

0 comments on commit 63ff686

Please sign in to comment.