forked from Kephson/imguploadncrop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
31 lines (25 loc) · 944 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// factor for the real size of the uploaded image
$sizefactor = 3;
// size of the big, preview and thumb container
$bigWidthPrev = 400;
$bigHeightPrev = 200;
// canvas size for the uploaded image
$canvasWidth = $bigWidthPrev * $sizefactor;
$canvasHeight = $bigHeightPrev * $sizefactor;
// file type error
$fileError = 'Filetype not allowed. Please upload again. Only GIF, JPG and PNG files are allowed.';
$sizeError = 'File is too big. Please upload again. Maximum filesize is 1.3MB.';
// image upload folders
$imgthumb = 'uploads/ready/'; // folder for the uploads after cropping
$imgtemp = 'uploads/temp/'; // temp-folder before cropping
$imgbig = 'uploads/big/'; // folder with big uploaded images
// max file-size for upload in bytes, default: 3mb
$maxuploadfilesize = 3200000;
// background color of the canvas as rgb, default:white
$canvasbg = array(
'r' => 255,
'g' => 255,
'b' => 255
);
?>