Welcome Guest, Not a member yet? Register   Sign In
Rotate Image via Javascript
#1

[eluser]Fireclave[/eluser]
Hi,

i will rotate a image via Prototype or jQuery, but i have no idea, how i can handle it...
have any a hint or a sample code ?

I have overwritten the example of www.derekallard.com, but this is not working.
Have any a simple example, how to call a Controller+Method with a Link and output the rotated image to the view, without reload ?
#2

[eluser]pickupman[/eluser]
You can create a controller that outputs/streams images. If you use headers like
Code:
header('Content-type: image/jpg');

//Open and output rotated image here
I do this on a couple of site to protect someone hotlinking to a image. All request are go through controller, where session can be checked, and authenticated.




Theme © iAndrew 2016 - Forum software by © MyBB