【问题标题】:JQuery plugin to transform with user interface使用用户界面进行转换的 JQuery 插件
【发布时间】:2012-10-26 08:39:18
【问题描述】:

我正在寻找一个 jQuery 插件,它可以为图像添加一个界面,以转动、缩放、旋转和移动角落中的点,就像在 Photoshop 和其他图像处理软件中一样。

当我不需要它时,我遇到了类似的东西,现在我需要它,我只是找不到它。我唯一发现的是:

http://www.egrappler.com/contents/SmartIt/Demo/smartit.htm

它看起来不错,正是我所需要的,但它的旋转有点小问题。

非常感谢任何帮助!

【问题讨论】:

    标签: jquery interface transform


    【解决方案1】:

    在一个项目中,我为此使用了 css 属性“transform”:

    var rotate = function(degree)
    {
       ...
       oSelf.css({
          'transform' : 'rotate('+degree+'deg)',
          '-ms-transform' : 'rotate('+degree+'deg)',
          '-o-transform' : 'rotate('+degree+'deg)',
          '-webkit-transform' : 'rotate('+degree+'deg)',
          '-moz-transform' : 'rotate('+degree+'deg)'
       });
    }
    

    在 IE8 和更早版本中通常是 doesn't work

    但是恕我直言this library 的渲染比原生浏览器渲染更漂亮。

    还有一个sample of editing picture,但它使用旧库

    【讨论】:

    • 嘿丹尼斯,很好的答案,谢谢!我不需要对IE的支持,谢天谢地!我需要的是界面,就像示例中一样,它在 Chrome 中运行良好。所以我会使用它!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-17
    相关资源
    最近更新 更多