''' Module dimensions: provides support for the determining the size of an image transformation Name 1: Name 2: Email id1: Email id2: ''' def same( original ) : ''' Returns the dimensions of an image that is the same size as original ''' w, h = original.size return (w, h) def cw( original ) : ''' Returns the dimensions of 90 degree clockwise rotation of original ''' w, h = original.size return (h, w) def scale( original, xs, ys ) : ''' Return a dimemnsions of am image that is a scaling of the original by xs in the x-dimension and ys in the y-dimension ''' w, h = original.size sw, sh = ... sw, sh = int( sw ), int( sh ) return (sw, sh)