Basic

First, you need to include the library:

  1. include "path-to/WideImage.php";

Then you can load an image:

  1. $image = WideImage::load("path-to/image.jpg");

After the image is loaded, you can perform operations on it:

  1. $resized = $image->resize(400, 300);

And finally, save the image:

  1. $resized->saveToFile("small.jpg");
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • Tumblr
  • Twitter