Web: solution for rotating and scaling an image

I have a webpage that displays a large image, such as a page from a magazine. I do not control the size or orientation of the image. Perhaps the image may be needed to rotate the user in order to properly orient him.

Are there any Javascript or Flash solutions that will allow someone to rotate and scale this image? Ideally, I would indicate one image and the dimensions that will be used when displaying it. If the image is larger than these sizes, the user can enlarge and view a part of the image in more detail.

+3
source share
2 answers

I saw a couple of solutions for rotating images using Javascript and CSS. Raphael would do the trick. Apparently, there is even an example showing image rotation. (it uses SVG, but supports all major browsers)

This is not a cross browser, but nonetheless interesting.

How to rotate the flash, etc.

+4
source

I used jquery-rotate to rotate the images , and it works very well.

This is not a fully cross browser, it does not work with IE6 (and probably with other older browsers).

, , javascript, ( jQuery).

0

Source: https://habr.com/ru/post/1707039/


All Articles