'''
ImageMetaTag is a python package built around a wrapper for
`savefig <http://matplotlib.org/api/pyplot_api.html?highlight=savefig#matplotlib.pyplot.savefig>`
in
`matplotlib <http://matplotlib.org/>`_, which adds metadata tags to supported image file formats.

Once the images have been tagged, it can also be used to manage an
`SQL database <https://docs.python.org/2/library/sqlite3.html>`_ of images and their metadata.
The image metadata can be used to produce an
:class:`ImageMetaTag.ImageDict` object: a structured/heirachical dictionary of dictionaries
which can be used to easily create web pages to present large numbers of images.

As the image metadata tagging process involves reading the image using the Image library,
a few common image post-processing options are included such as cropping, logo addition and
colour palette manipulation to reduce filesizes.

.. moduleauthor:: Malcolm Brooks https://github.com/malcolmbrooks
'''

__version__ = '0.2'

# list fo file formats which are valid for saving metadata to:
META_IMG_FORMATS = ['png']

# default timeout and retries for database access:
DEFAULT_DB_TIMEOUT = 6
DEFAULT_DB_ATTEMPTS = 20

from ImageMetaTag.savefig import savefig, image_file_postproc
from ImageMetaTag.img_dict import ImageDict, readmeta_from_image, dict_heirachy_from_list, \
                                  dict_split, simple_dict_filter, check_for_required_keys
# we want all of the functions in webpage and db, as a separate level
import ImageMetaTag.webpage, ImageMetaTag.db

@@ -154,16 +154,17 @@
 avefig%3E%60
+_
 %0Ain%0A%60mat

Fix broken link in documentation page