Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to rotate an image?

Status
Not open for further replies.

awingnut

Programmer
Joined
Feb 24, 2003
Messages
759
Location
US
I have some images that I'd like to rotate 90 degrees without building a seperate image file for each. Is it possible to do this with HTML? TIA.
 
It definately can't be done with HTML. You're better bet will be with a JAVA applet.

There's always a better way. The fun is trying to find it!
 
Hi mate,

Not what you are looking for but the closest I can think of using html/css.

<head>
<style>
.rotate {
writing-mode: tb-rl;
filter: flipv fliph;
}
</style>
</head>
<body>

<div class=&quot;rotate&quot;><img src=&quot;image.gif&quot;></div>

</body>
</html>

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
isnt this IE compatible only?

<signature>
sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
</signature>
 
Thanks for the reply. I guess I can't do what I want and avoid browser dependencies.
 
Not on the client side, but who's to say there isn't a server side app that'll do it for you. Then, your client code can be clean and crisp, like fresh underpants, just back from the vet.

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Why not just make a new image file? Jeeze. You coulda been done with it by now.
 
Part of the original question was &quot;without building a separate image file for each.&quot;

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
I can do server-side programs. I hadn't thought of that (DUH!) so I'll look into it. Thanks.
 
Here is something to help you along your way to rotate an image server side.


To use this function your server may need to have one of the following setup:

Windows Server: PHP_GD2.dll installed or enabled in the PHP.ini file.

Linux/UNIX: GD Library installed & enabled
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top