Jump to content


Photo

Image rotation


  • Please log in to reply
2 replies to this topic

#1 lakshmivijay

lakshmivijay
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 October 2006 - 10:58 AM

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...


#2 lakshmivijay

lakshmivijay
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 October 2006 - 01:00 PM

pls Healp any one...

#3 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 11 October 2006 - 02:40 PM

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]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users