Permalink
Browse files

Renamed generate file and added exports

  • Loading branch information...
1 parent 1ddee20 commit 4b763f2b5e707ad5cb58f4a59154118570fa3f8c Ovidiu Chereches committed Feb 27, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 index.php → generate.php
@@ -58,6 +58,15 @@
$x += 140;
}
+// Save
+
+$path = 'exports/' . time() . '.jpg';
+
+if(!imagejpeg($img, $path, 100))
+{
+ exit;
+}
+
// Header
header('Content-Type: image/jpeg');

0 comments on commit 4b763f2

Please sign in to comment.