Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'class/Upload.class.php';
- $pic = __DIR__."/" . $_GET['src'];
- $handle = new upload( $pic );
- $handle->image_resize = true;
- $image_x = intval($_GET['w']);
- $image_y = intval($_GET['h']);
- $handle->image_x = $ $image_x;
- $handle->image_y = $image_y;
- //$handle->image_ratio_y = true;
- $handle->image_ratio_x = true;
- $handle->jpeg_quality = (isset($_GET['q'])) ? intval($_GET['q']) : 85;
- @header( 'Content-type: ' . $handle->file_src_mime );
- echo $handle->Process();
- die();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement