Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'class/Upload.class.php';
- $largura = 220;
- $altura = 150;
- if ( isset( $_GET['w'] ) ):
- $largura = $_GET['w'];
- endif;
- if ( isset( $_GET['h'] ) ):
- $altura = $_GET['h'];
- endif;
- $handle = new upload( $pic = $_GET['img'] );
- $handle->image_resize = true;
- $handle->image_ratio_crop = true;
- $handle->image_x = $largura;
- $handle->image_y = $altura;
- //$handle->image_ratio_y = true;
- $handle->image_convert = 'jpg';
- $handle->jpeg_quality = 90;
- @header( 'Content-type: ' . $handle->file_src_mime );
- echo $handle->Process();
- die();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement