''' Module dim: provides support for the determining the size of an image transformation ''' def iso( orig ) : ''' Returns (w, h) where orig is a w x h image ''' w, h = orig.size return (w, h) def cw( orig ) : ''' Returns (h, w) where orig is a w x h image ''' w, h = orig.size return (h, w)