Jump to content

Image rotation


lakshmivijay

Recommended Posts

Hi
i used this code to rotating the image


"File and rotation
/*$filename = 'aaa.jpg';
$degrees = 180;

// Content type
header('Content-type: image/jpeg');

// Load
$source = imagecreatefromjpeg($filename);

// Rotate
$rotate = imagerotate($source, $degrees, 0);

$img=imagejpeg($rotate);
echo $img;"

if i used this code my html is not displaying (mean html code like header of the site like....)

Pls Help me

Thanks...
Link to comment
https://forums.phpfreaks.com/topic/23652-image-rotation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.