diff --git a/file.php b/file.php new file mode 100644 index 0000000..377d177 --- /dev/null +++ b/file.php @@ -0,0 +1,95 @@ + 130); + +if ($_SERVER['REQUEST_METHOD'] == 'POST' AND isset($_FILES['image'])) { + if( $_FILES['image']['size'] < $max_file_size ){ + // get file extension + $ext = strtolower(pathinfo($_FILES['image']['name'], PATHINFO_EXTENSION)); + if (in_array($ext, $valid_exts)) { + /* resize image */ + foreach ($sizes as $w => $h) { + $files[] = resize($w, $h); + } + + } else { + $msg = 'Unsupported file'; + } + } else{ + $msg = 'Please upload image smaller than 5 MB'; + } +} +?> + + + + +PixelRemapping - Bento + + + + +
+
+
+

PixelRemapping | A Bento Project

+
+
+
+ +
+
+
+ + +

+ + + +
+ + +
+
+
+
+ +
+
+

Generate PixelRemapping
"; + } + } + ?> + +
+
+
+
+
+
+
+
+

Or make a photo with your webcam.

+

© Bento

+ +
+
+
+
+
+ +
+ +