PHP Classes
elePHPant
Icontem

File: docs/examples/rotation.md

Recommend this page to a friend!
  Classes of Jose Luis Quintana  >  GImage  >  docs/examples/rotation.md  >  Download  
File: docs/examples/rotation.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: GImage
Create graphic images with a fluent interface
Author: By
Last change:
Date: 1 year ago
Size: 262 bytes
 

Contents

Class file image Download

Rotation

The following example rotates a PNG image 90.

<?php

use GImage\Image;

$image = new Image();
$image
    ->load('https://i.imgur.com/G5MR088.png')
    // Rotate 90
    ->rotate(90)
    // Save on local
    ->save('rotate_image.png');