George Notaras avatar George Notaras committed cca6e25

Set autogenerated documentation for the EnhancedImageField

Comments (0)

Files changed (1)

 
 The EnhancedImageField
 ======================
-*django-thumbnail-works* provides an enhanced version of the default Django's
-``ImageField``, which can generate thumbnails of the original image and also
-process the original image before it is saved on the remote server.
 
+.. autoclass:: thumbnail_works.fields.EnhancedImageField
 
-EnhancedImageField attributes and methods
------------------------------------------
-
-The ``EnhancedImageField`` derives from the default ``ImageField`` and thus
-all attributes and methods of the default ``ImageField`` are inherited.
-
-In addittion to the default attributes, the ``EnhancedImageField`` also
-supports the following:
-
-- ``process_source``: A dictionary of thumbnail options as described in the
-  following section. If this is set, the original image will be processed
-  using the provided options before it is saved on the remote server.
-  Contrariwise, if this attribute is not set, the uploaded image is saved in
-  its original form, without any further processing.
-- ``thumbnails``: A dictionary of thumbnail definitions. The format of each
-  thumbnail definition is::
-
-    <thumbnail_name> : <thumbnail_options>
-
-
-Thumbnail options
------------------
-
-Thumbnail options is a dict of options that will be used during the thumbnail
-generation. Supported options are:
-
-``size``
-    A string of the WIDTHxHEIGHT which represents the size of
-    the thumbnail.
-``sharpen``
-    Boolean option. If set, the ``ImageFilter.SHARPEN`` filter will
-    be applied to the thumbnail.
-``detail``
-    Boolean option. If set, the ``ImageFilter.DETAIL`` filter will
-    be applied to the thumbnail.
-``upscale``
-    Boolean option. By default, image resizing occurs only if
-    any of the image dimensions is longer than the dimension
-    indicated by the ``size`` option. If this is enabled, the
-    resizing occurs even if the former condition is not met.
-``format``
-    This is the format in which the thumbnail should be saved.
-    Valid values are those supported by PIL.
 
 
 Example
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.