1. #1
    Ext User mahendra_gayatri's Avatar
    Join Date
    Jul 2008
    Location
    India
    Posts
    58
    Vote Rating
    0
    mahendra_gayatri is on a distinguished road

      0  

    Default Image rotation in Extjs

    Image rotation in Extjs


    I have been able to create image dynamically in the Extjs panel.

    PROBLEM : I need to rotate the image with respect to a particular angle. Is there any Ext way of doing this?

    PROBABLE SOLUTION :
    http://www.walterzorn.com/rotate_img/rotate_img.htm
    But this helps rotate images created on the HTML page using img tag and not dynamically like in Extjs.

    Any Help will be useful.

  2. #2
    Ext JS Premium Member saJoshua's Avatar
    Join Date
    Nov 2007
    Location
    South Africa
    Posts
    521
    Vote Rating
    5
    saJoshua is on a distinguished road

      0  

    Default


    there is no effective image rotator in javascript.

    Better to do it on your server or in flash.

  3. #3
    Ext User
    Join Date
    Dec 2007
    Posts
    95
    Vote Rating
    0
    evanc is on a distinguished road

      0  

    Default


    The script you linked to is hilariously stupid... I can't imagine what it would possibly be useful for.

    You could use a Canvas element to rotate the image but it would be far easier to just do it on the server. It's pretty easy to write a php script to rotate the image, or you could use phpthumb. Then just update its src to be example.php?img=example.jpg&deg=45 whenever you want it to rotate.

Thread Participants: 2