SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | require_once 'class/Upload.class.php'; | |
4 | $largura = 220; | |
5 | $altura = 150; | |
6 | ||
7 | if ( isset( $_GET['w'] ) ): | |
8 | $largura = $_GET['w']; | |
9 | endif; | |
10 | if ( isset( $_GET['h'] ) ): | |
11 | $altura = $_GET['h']; | |
12 | endif; | |
13 | $pic = $_GET['img']; | |
14 | - | $handle = new upload( $pic = $_GET['img'] ); |
14 | + | $handle = new upload( $pic ); |
15 | $handle->image_resize = true; | |
16 | $handle->image_ratio_crop = true; | |
17 | $handle->image_x = $largura; | |
18 | $handle->image_y = $altura; | |
19 | //$handle->image_ratio_y = true; | |
20 | $handle->image_convert = 'jpg'; | |
21 | $handle->jpeg_quality = 90; | |
22 | @header( 'Content-type: ' . $handle->file_src_mime ); | |
23 | echo $handle->Process(); | |
24 | die(); | |
25 | ?> |