jQuery 图像选择区域
我发现优秀的 jquery imageareaselect: http://odyniec.net/projects/imgareaselect/ 用于WordPress。
除了一件事之外,脚本工作得很好。
例如,当您的图像尺寸为 1024x768 时,您设置 imageHeight (300) 和 imageWidth (400),效果很好,但问题是您无法将裁剪器设置为整数。
例如,您选择 600x400,而您在选择输入中得到的是 599x399。
Wordpress 在 image-edit.js 中有相应的补丁,但我无法让它工作。
有人解决了吗?
谢谢
I found excellent jquery imageareaselect: http://odyniec.net/projects/imgareaselect/ which is used in wordpress.
Script works excellent except one thing.
For example when you have image with dimensions 1024x768 you set imageHeight (300) and imageWidth (400) and that works fine but problem is that you can't set cropper to round numbers.
For example you select 600x400 and what you get in selection innput's is 599x399.
Wordpress has patch for that in image-edit.js but I can't get it out to work.
Has anybody has solved that?
Thank's
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前没有使用过该插件,但我以前使用过 jCrop,没有出现您描述的问题。 http://deepliquid.com/content/Jcrop.html
I haven't used that plugin before, but I have used jCrop before without the issue that you describe. http://deepliquid.com/content/Jcrop.html