Hi,
GD library is such a strong architecture, that you can do anything using it. If you want to rotate a simple jpeg file using PHP, this is the code that is needed:
<?php
$im=imagecreatefromjpeg("img.jpg");
$white=imagecolorallocate($im,255,255,255);
$im=imagerotate($im,20,$white);
header("content-type: image/jpeg");
imagejpeg($im);
The image transformation from original to rotated image is as follows respectively:
Explanation:
GD library is such a strong architecture, that you can do anything using it. If you want to rotate a simple jpeg file using PHP, this is the code that is needed:
<?php
$im=imagecreatefromjpeg("img.jpg");
$white=imagecolorallocate($im,255,255,255);
$im=imagerotate($im,20,$white);
header("content-type: image/jpeg");
imagejpeg($im);
The image transformation from original to rotated image is as follows respectively:
Explanation: