diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-11-22 19:43:11 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-11-22 19:43:11 +0100 |
commit | 3c3b2cf45853af138b645cae700bdbb8352ce158 (patch) | |
tree | ebbf48e2c901275cf9c7ede0560a1e3860ca2808 | |
parent | d990761f2f2c929dd74cee87742540219c205067 (diff) | |
download | pyexiv2-3c3b2cf45853af138b645cae700bdbb8352ce158.tar.gz |
New section in the tutorial on EXIF thumbnails.
-rw-r--r-- | doc/tutorial.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/tutorial.rst b/doc/tutorial.rst index 6161285..9f5a418 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -94,6 +94,16 @@ If the tag was not present, one is created and its value is set:: >>> metadata[key] = value +The EXIF data may optionally embed a thumbnail in the JPEG or TIFF format. +The thumbnail can be accessed, set from a JPEG file or buffer, saved to disk and +erased:: + + >>> thumb = metadata.exif_thumbnail + >>> thumb.set_from_file('/tmp/thumbnail.jpg') + >>> thumb.write_to_file('/tmp/copy') + >>> thumb.erase() + >>> metadata.write() + Reading and writing IPTC tags ############################# |