W
William Xuuu
Hi, guys ~
How can i rotate an image 90 degrees within the tag <img> ? thanks,
How can i rotate an image 90 degrees within the tag <img> ? thanks,
How can i rotate an image 90 degrees within the tag <img> ?
<
i
m
g
s
r
c
=
"
m
y
-
i
m
a
g
e
..
p
n
g
"
a
l
t
=
"
b
l
a
h
"
How can i rotate an image 90 degrees within the tag <img> ? thanks,
<?
$fileName = "Image.jpg";
$angle = 90.0;
$bgColour = 0xFFFFFF; // red
$original = imagecreatefromjpeg($fileName);
$rotated = imagerotate($original, $angle, $bgColour);
header('Content-type: image/jpeg');
imagejpeg($rotated);
?>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.