Browse Source

clean up docs

main
Brian Mattern 12 years ago
committed by Lakshmi Vyasarajan
parent
commit
7eb25906c1
1 changed files with 14 additions and 6 deletions
  1. +14
    -6
      hyde/ext/plugins/images.py

+ 14
- 6
hyde/ext/plugins/images.py View File

@@ -200,18 +200,26 @@ class ImageThumbnailsPlugin(Plugin):
include: include:
- '*.png' - '*.png'
- '*.jpg' - '*.jpg'
- lfrom every picture arger: 100
- larger: 100
prefix: thumbs3_ prefix: thumbs3_
include: include:
- '*.jpg' - '*.jpg'
which means - make three thumbnails from every picture with different prefixes
- smaller: 50
prefix: thumbs4_
include:
- '*.jpg'
which means - make four thumbnails from every picture with different prefixes
and sizes and sizes


If both width and height defined, image would be cropped, you can define
crop_type as one of these values: "topleft", "center" and "bottomright".
"topleft" is default.
It is only valid to specify either width/height or larger/smaller, but not to
mix the two types.

If larger/smaller are specified, then the orientation (i.e., landscape or
portrait) is preserved while thumbnailing.


XXX fix docs for larger/smaller
If both width and height (or both larger and smaller) are defined, the
image is cropped. You can define crop_type as one of these values:
"topleft", "center" and "bottomright". "topleft" is default.


Currently, only supports PNG and JPG. Currently, only supports PNG and JPG.
""" """


Loading…
Cancel
Save