07-05-2010, 06:10 PM
|
#4 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
Whoops, I'll fix that
Here we go:
Assuming our file is this
PHP Code:
<?php $image = 'myfile.jpg'; $degrees = intval('90'); header('Content-type: image/jpeg') ; $source = imagecreatefromjpeg($image) ; $rotate = imagerotate($source, $degrees, 0) ; imagejpeg($rotate) ; ?>
ps. If you think that is a cheap way, my next alternitave would be to add 9 int typecast trues together.
|
|
|
|