Skip to content

Commit

Permalink
changing description of fit-in (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
savar authored and scorphus committed Mar 5, 2017
1 parent f881643 commit 106d62f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/usage.rst
Expand Up @@ -64,8 +64,8 @@ Fit in
~~~~~~

The fit-in argument specifies that the image should not be auto-cropped
and auto-resized to be **EXACTLY** the specified size, and should be fit
in an imaginary box of "E" width and "F" height, instead.
but auto-resized (shrinked) to fit in an imaginary box of "E" width and
"F" height, instead.

Consider an image of 800px x 600px, and a fit of 300px x 200px. This is
how thumbor would resize it:
Expand All @@ -82,6 +82,10 @@ how thumbor would resize it:
This is very useful when you need to fit an image somewhere, but you
have no idea about the original image dimensions.

Keep in mind that it won't enlarge your image in case it is smaller than
the specified "E" width and "F" height! One way of getting the image in the
size requested is to use the :doc:`filling` filter.

Image Size
~~~~~~~~~~

Expand Down

0 comments on commit 106d62f

Please sign in to comment.