Workout With Friends Stay fit with a little motivation

- Main Page
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

All Classes Namespaces Files Functions Variables Properties
Classes | Functions
wowf.lib.image Namespace Reference

## Classes
class | StoredImage
| Utility class for thumbnailed images, used to access both the original as well as all thubnail versions of the image. More...

## Functions
def | make_thumbnail
| Create a thumbnail copy of the given image file.
def | upload_and_make_thumbnails
| Upload the original image file, and create the necessary thumbnail versions.

## Function Documentation

def wowf.lib.image.make_thumbnail | ( |  | infile,
|  |  | outpath,
|  |  | size
| ) |  |

Create a thumbnail copy of the given image file.

Parameters

  infile | Source image file
  outpath | Destination path of the thumbnail
  size | Thumbnail dimensions

Definition at line 20 of file image.py.

def wowf.lib.image.upload_and_make_thumbnails | ( |  | infile,
|  |  | upload_dir,
|  |  | filename,
|  |  | versions = `None`
| ) |  |

Upload the original image file, and create the necessary thumbnail versions.

Parameters

  versions | Dictionary of key => dimensions

Definition at line 38 of file image.py.