jQuery 图像选择区域

发布于 2024-12-02 13:51:46 字数 427 浏览 4 评论 0原文

我发现优秀的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧城空念 2024-12-09 13:51:46

我以前没有使用过该插件,但我以前使用过 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文