Image_Transform
[ class tree: Image_Transform ] [ index: Image_Transform ] [ all elements ]

Source for file resize.php

Documentation is available at resize.php

  1. <?php
  2. require_once 'Image/Transform.php';
  3.  
  4.  
  5. // factory pattern - returns an object
  6. $a Image_Transform::factory('GD');
  7.  
  8. // load the image file
  9. $a->load("teste.jpg");
  10.  
  11.  
  12. // scale image by percentage - 40% of its original size
  13. $a->scalebyPercentage(40);
  14.  
  15. // displays the image
  16. $a->display();

Documentation generated on Mon, 11 Mar 2019 15:48:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.