Workout With Friends
Stay fit with a little motivation
 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
infileSource image file
outpathDestination path of the thumbnail
sizeThumbnail 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
versionsDictionary of key => dimensions

Definition at line 38 of file image.py.