kosinix / grafika

An image processing library for PHP
https://kosinix.github.io/grafika
MIT License
876 stars 93 forks source link

How can rotate a image? #3

Closed zxygithub closed 8 years ago

zxygithub commented 8 years ago

hi,

I want to rotate a image by use follow code, but the result is same, the rotate image same with original image. How worte this code?

Alex

<?php require_once './vendor/autoload.php';

use Grafika\Grafika;

$editor = Grafika::createEditor(); $editor->open( "./images/list_1.jpg" ); $editor->rotate(90); $editor->save( "./images/list_1_rotate.jpg", null, 90 ); $editor->free();

kosinix commented 8 years ago

Hello Alex,

It was a bug. Please update to v1.2.1 to fix the issue. Your code is correct.