Advertisement
rafaelclares

Untitled

May 18th, 2020
1,480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2. require 'class/Upload.class.php';
  3.  
  4. $pic = __DIR__."/" . $_GET['src'];
  5.  
  6. $handle = new upload( $pic );
  7. $handle->image_resize = true;
  8.  
  9. $image_x = intval($_GET['w']);
  10. $image_y = intval($_GET['h']);
  11.  
  12. $handle->image_x = $ $image_x;
  13. $handle->image_y = $image_y;
  14. //$handle->image_ratio_y = true;
  15. $handle->image_ratio_x = true;
  16. $handle->jpeg_quality = (isset($_GET['q'])) ? intval($_GET['q']) : 85;
  17. @header( 'Content-type: ' . $handle->file_src_mime );
  18. echo $handle->Process();
  19. die();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement