lakshmivijay Posted October 11, 2006 Share Posted October 11, 2006 Hii used this code to rotating the image"File and rotation/*$filename = 'aaa.jpg';$degrees = 180;// Content typeheader('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 meThanks... Link to comment https://forums.phpfreaks.com/topic/23652-image-rotation/ Share on other sites More sharing options...
lakshmivijay Posted October 11, 2006 Author Share Posted October 11, 2006 pls Healp any one... Link to comment https://forums.phpfreaks.com/topic/23652-image-rotation/#findComment-107394 Share on other sites More sharing options...
printf Posted October 11, 2006 Share Posted October 11, 2006 You have to call the script from a image tag you can not include the image directly in a html page! A qiuck (2) minute a example is attached....Place all the files in your document root, then call http://www.your_site.com/index.html!me![attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/23652-image-rotation/#findComment-107445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.