summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-10 12:48:42 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-03-10 12:48:42 -0700
commitfddc68fcc46f199d93e119cb1f7e86949835ffc3 (patch)
tree73f418c282e29bddbcfb1ec62c4f4a0021d4443c
parent986eb95647428e8af0a14c7cc2c20ed9659cbac5 (diff)
downloadpathery-fddc68fcc46f199d93e119cb1f7e86949835ffc3.tar.xz
Image rotation for emblems - started.
-rw-r--r--images/rotate.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/images/rotate.php b/images/rotate.php
new file mode 100644
index 0000000..ae0df87
--- /dev/null
+++ b/images/rotate.php
@@ -0,0 +1,20 @@
+<?php
+// File and rotation
+$filename = 'OverlayStart50.png';
+
+$degrees = $_GET['r'] * 90;
+//$degrees = 180;
+
+// Content type
+header('Content-type: image/jpeg');
+
+// Load
+$source = imagecreatefrompng($filename);
+
+// Rotate
+$rotate = imagerotate($source, $degrees, 0);
+
+// Output
+imagepng($rotate);
+
+?> \ No newline at end of file