Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > rotate an image 90 degrees ?

Reply
Thread Tools

rotate an image 90 degrees ?

 
 
William Xuuu
Guest
Posts: n/a
 
      10-07-2004

Hi, guys ~

How can i rotate an image 90 degrees within the tag <img> ? thanks,

--
William Xuuu
Humans remove heyyy_ from the email address to reply.
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      10-07-2004
In alt.html William Xuuu said:

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


or IIRC old crappy IE has some proprietary rubbish which obviously would
only work with IE so is useless. use your image editor or some server
side image manipulation scripting if automation is required.

--
i t ' s t h e l i t t l e v o i c e s
 
Reply With Quote
 
 
 
 
Dylan Parry
Guest
Posts: n/a
 
      10-07-2004
As an authority on the subject, William Xuuu proclaimed:

> How can i rotate an image 90 degrees within the tag <img> ? thanks,


You can't. You'll have to use your favourite image editor to do that, or
use some sort of server-side technology.

--
Dylan Parry
http://webpageworkshop.co.uk - FREE Web tutorials and references


 
Reply With Quote
 
aa
Guest
Posts: n/a
 
      10-08-2004
You mean rotate by some actions on the page like button?
Then you need a copy of your picture turned on its side. To do that, if you
are on w2k (and probably XP) with MS Office installed, got to Programs-->MS
Office Tools-->MS Photo Editor
Load the original image, then for the meny bar select Image-Rotate. The rest
is self explanatory

And a bit of JavaScript to swap images on some event like mouseOver


"William Xuuu" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi, guys ~
>
> How can i rotate an image 90 degrees within the tag <img> ? thanks,
>
> --
> William Xuuu
> Humans remove heyyy_ from the email address to reply.



 
Reply With Quote
 
Pedness Pedness is offline
Junior Member
Join Date: Nov 2007
Posts: 1
 
      11-26-2007
You can, in PHP
Code:
<?

$fileName = "Image.jpg";

$angle = 90.0;


$bgColour = 0xFFFFFF; // red

$original = imagecreatefromjpeg($fileName);

$rotated = imagerotate($original, $angle, $bgColour);

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

imagejpeg($rotated);
?>
Found at http://discomoose.org/2006/04/28/rot...ures-with-php/
 
Reply With Quote
 
jimjim85 jimjim85 is offline
Junior Member
Join Date: Jun 2010
Posts: 1
 
      06-19-2010
u can use a software to rotate it like Rotate Image
that is quite cheap and then you upload it to your website
moonvalleysoft.com/rotate-image-p-46.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotate the graphics without rotate the text in SVG RC XML 1 08-03-2006 07:45 AM
Rotate ASP:Image 45 Degrees =?Utf-8?B?QUNhdW50ZXI=?= ASP .Net 3 03-02-2005 08:42 PM
how to rotate an image 180 degrees Leo Koolsbergen Javascript 6 12-22-2004 07:40 AM
Tool to right click image in windows explorer and rotate image right or left 90 degrees siliconpi Digital Photography 2 11-29-2004 12:56 PM
rotate screen 90 degrees? Eddie B. ASP .Net Web Controls 4 12-19-2003 06:02 PM



Advertisments