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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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