@@ -0,0 +1,427 @@
+#!/usr/bin/env python%0A# encoding: utf-8%0A%0Afrom wand.image import Image%0A%0Adef rotate_image(filename, degrees):%0A    %22%22%22Rotates filename degrees degrees.%22%22%22%0A    with Image(filename=filename) as image:%0A        with image.clone() as rotated:%0A            rotated.rotate(degrees)%0A            rotated.save(filename=filename)%0A%0Adef main():%0A    %22%22%22TODO: docstring%22%22%22%0A    rotate_image('test.pdf', 180)%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add rotate_image() that rotates image a given amount of degrees