An Image Collage
Due Date: Thursday, December 2, 2004, at 11:59 pm
Write a function named makeCollage in a file named
makeCollage.py to create a collage of the same image at least
four times fit onto the 7x95in blank JPEG.
Or you can create your own empty canvas using the makeEmptyPicture()
command.
(You are welcome to
add additional images, too.) One of those four copies can be the
original picture. The other three must be modified forms. One of
these forms MUST BE
- scaling the image
- cropping the image
- rotating the image.
On the other two, you can do any modification you wish. Such
modifications include
- scaling, cropping or rotating the image
- mirroring the image
- negating the image
- shifting or altering colors on the image or portion of the image,
- and making it darker or lighter.
After composing all four pictures (or more), you must mirror
the ENTIRE canvas, in some direction: Horizontally,
vertically, diagonally. This will create at least eight
pictures. Four (or more) from the original modification
and four (or more) from the mirrorring of the original modification.
Your single function should make all of this happen--all of the
effects and compositing must occur from the single function
makeCollage(). IT IS PERFECTLY OKAY FOR makeCollage() TO
USE OTHER FUNCTIONS! Your TA will only setMediaPath()
and will put all your input pictures in her mediasources directory,
and then execute makeCollage()--and will expect to see a collage get
generated
You need to electronically submit your makeCollage.py file and
any image file your function uses..
We will use our onw picture for the grading of the assignment.
The project name to be used with the UNIX turnin command
is mp4.
Since the name of the file will be the same for everyone, the
turnin command for you to use will be very close to:
$> turnin -c troy -p mp4 makeCollage.py imagefile(s).jpg
i100@cs.uic.edu
Department of Computer Science
University of Illinois at Chicago