Mercurial > hg > cropresize
comparison README.txt @ 4:6ec33e2ce60f
more documentation
author | k0s <k0scist@gmail.com> |
---|---|
date | Sat, 06 Mar 2010 13:22:31 -0500 |
parents | 2be0070c6f95 |
children | c89738f3f417 |
comparison
equal
deleted
inserted
replaced
3:2be0070c6f95 | 4:6ec33e2ce60f |
---|---|
6 resizing without aspect ratio distortion. | 6 resizing without aspect ratio distortion. |
7 | 7 |
8 API | 8 API |
9 --- | 9 --- |
10 | 10 |
11 cropresize contains one useful function, ``cropresize.crop_resize``. | |
12 The function takes three arguments: | |
13 | |
14 * image: a PIL image object | |
15 * size: a 2-tuple of (width,height); at least one must be specified | |
16 * exact_size: whether to scale up for smaller images | |
17 | |
18 See ``cropresize.crop_resize.__doc__`` for the function | |
19 documentation. ``crop_resize`` returns the cropped and resized PIL image. | |
20 | |
21 | |
11 Command Line | 22 Command Line |
12 ------------ | 23 ------------ |
13 | 24 |
14 The command line program, ``crop-resize``, is included in this python | 25 The command line program, ``crop-resize``, is included in this python |
15 package. The help for the program is displayed by running | 26 package. The help for the program is displayed by running |
16 ``crop-resize`` with no arguments or ``crop-resize --help``. | 27 ``crop-resize`` with no arguments or ``crop-resize --help``. |
28 | |
29 -- | |
30 | |
31 http://k0s.org/portfolio/software.html#cropresize |