image( 'example-portrait.jpg', new Cover(200, 500) ); // currently the only operation supported are 90 degree rotation and flipping $image->rotate(); //rotates by 90 degrees $image->flipH(); //flips horizontally, use flipV to flip vertically // use save() to build the image and save it to a file $image->save('out/example-1.jpg'); // display the generated file in the browser echo ''; // output peak memory usage var_dump(memory_get_peak_usage());