To install the requirements, type
pip install -r requirements.txt
on the commandline.
This installs matplotlib and numpy.
To run the script, type
python script.py
on the commandline.
This will display the new image in matplotlib and save the new image to the transformations folder.
Using methods from imagemagic.py, you can rotate the image around the origin, reflect it around the x and y axes, and transform it with a 2x2 transformation matrix.