PHP Classes

File: docs/content/examples/rotation.md

Recommend this page to a friend!
  Classes of Jose Luis Quintana   GImage PHP Canvas to Image   docs/content/examples/rotation.md   Download  
File: docs/content/examples/rotation.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: GImage PHP Canvas to Image
Create and compose canvas images from other images
Author: By
Last change:
Date: 8 months 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');