Assignment 25 — image manipulation

Due Monday, April 16


Module manip.py

Supports several common image transformations – mirroring, flipping, rotating, scaling, and pixelation. Except for the pixelation transformation, all of the transformations copy values from the original image into the transformation.

Questions to ask yourself before attempting the transformations:


Function cw( original )

original original


Function scale( original, xfactor, yfactor )

original mixed scaling
original mixed scaling
original mixed scaling
original mixed scaling

Function pixelate( original )

Thomas Jefferson pixelated Thomas Jefferson