Skip to content

Commit

Permalink
Merge pull request #14 from shadowmint/bug-obscure-documentation
Browse files Browse the repository at this point in the history
Adds documentation for what the 'direction' parameter actually does
  • Loading branch information
jensens committed Jan 6, 2016
2 parents 36de788 + ce832aa commit 50bc117
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,22 @@ much flexibility/convenience you need:
However, it's recommended to use the ``tag`` method of the image
scales view directly because it avoids loading the image into memory.

Scaled image direction
~~~~~~~~~~~~~~~~~~~~~~

Three different scaling options are supported with the ``direction`` parameter.

* ``up`` scaling scales the smallest dimension up to the required size
and crops the other dimension if needed.

* ``down`` scaling starts by scaling the largest dimension to the required
size and crops the other dimension if needed.

* ``thumbnail`` scales to the requested dimensions without cropping. The
resulting image may have a different size than requested. This option
requires both width and height to be specified. `keep` is accepted as
an alternative spelling for this option, but its use is deprecated.

Scaled image quality
~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 50bc117

Please sign in to comment.