rotate an image 90 degrees ?

Discussion in 'HTML' started by William Xuuu, Oct 7, 2004.

  1. William Xuuu

    William Xuuu Guest

    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.
     
    William Xuuu, Oct 7, 2004
    #1
    1. Advertising

  2. William Xuuu

    brucie Guest

    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
     
    brucie, Oct 7, 2004
    #2
    1. Advertising

  3. William Xuuu

    Dylan Parry Guest

    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
     
    Dylan Parry, Oct 7, 2004
    #3
  4. William Xuuu

    aa Guest

    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" <> wrote in message
    news:...
    >
    > 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.
     
    aa, Oct 8, 2004
    #4
  5. William Xuuu

    Pedness

    Joined:
    Nov 26, 2007
    Messages:
    1
    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/rotating-pictures-with-php/
     
    Pedness, Nov 26, 2007
    #5
  6. William Xuuu

    jimjim85

    Joined:
    Jun 19, 2010
    Messages:
    1
    use a software

    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
     
    jimjim85, Jun 19, 2010
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QUNhdW50ZXI=?=

    Rotate ASP:Image 45 Degrees

    =?Utf-8?B?QUNhdW50ZXI=?=, Mar 1, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    5,487
    Steve C. Orr [MVP, MCSD]
    Mar 2, 2005
  2. RC
    Replies:
    1
    Views:
    887
    Bjoern Hoehrmann
    Aug 3, 2006
  3. IanJSparks
    Replies:
    0
    Views:
    1,162
    IanJSparks
    Jan 10, 2008
  4. Eddie B.

    rotate screen 90 degrees?

    Eddie B., Dec 17, 2003, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    310
    vMike
    Dec 19, 2003
  5. Leo Koolsbergen

    how to rotate an image 180 degrees

    Leo Koolsbergen, Dec 21, 2004, in forum: Javascript
    Replies:
    6
    Views:
    365
    Leo Koolsbergen
    Dec 22, 2004
Loading...

Share This Page