Will you require the image to be rotated via user input, or do you already
know which angles it will be drawn at so you can provide pre-roated images?
You could create a load of pre-rotated images (360 of them, say) using PHP
scripting for the GIMP, then send the user the one they want when the page
loads.
No, user input is not a factor. In afct, a series of pre-rotated
images is exactly what I had in mind.
I thought I could use the "gd" functions in PHP to create them (I
don't need anywhere near 360 of them - maybe 6 - 8), but I have not
been able to get past a couple of problems with the "imagerotate"
function. But, even if I would get that to work, I'll still have to
deal with the fact that a rotated image will be much larger than what
I would like.
The image I want to rotate is simply a long, narrow rectangle (roughly
the proportions of a pen or a pencil). When it's displayed on the web
page, it needs to be clickable - thus my desire to display it as an
<img>. If I create an image with the narrow rectangle rotated then the
entire image becomes relatively large (eg: a 2" x .25" rectangle, when
rotated at 45 degrees, would require an area more than 2" x 2") and
the background area is also clickable (even though it would be
transparent). That all led to my original question here about how I
might rotate the long, narrow image without actually changing it in
any manner.
FWIW, I can do exactly what I'm talking about with VML (Vector Markup
Language) but that works only in IE and I want something that can be
viewed in any browser. (And, alluding to another branch of this thread
- without any plug-ins).
Any other thoughts or suggestions will be greatly appreciated - I'm
pretty much stumped as to how to do this.