jCrop中的图像失真问题

发布于 2025-01-08 07:43:16 字数 234 浏览 3 评论 0原文

iamge distorion

html 源代码: 在此处输入图像描述

这很奇怪。我在加载图像时调用jCrop函数,我确信jCrop可以获取图像的真实宽度和高度,但结果是图像扭曲了。

有人遇到这个错误吗?

iamge distorion

the html srouce code:
enter image description here

That's rellay strange. I call the jCrop function when the image is loaded, I'm sure jCrop can get the real width and height of the image, but the resut is the image is distorted.

Is there anyone encounter this error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

坚持沉默 2025-01-15 07:43:16

我终于找到了关键点,img标签在我的css中设置为“max-width:100%”。我删除它,然后一切正常

I finally found the key point, the img tag was set "max-width:100%" in my css. I delete it, then everything comes right

哀由 2025-01-15 07:43:16

我参加聚会有点晚了,但目前正在解决这个问题。这是一个选择器错误。您可以在此处获取包含修复程序的分支(尚未正式发布)

https://github .com/tapmodo/Jcrop/pull/75

I'm a bit late to the party, but there is a fix for this in the works. It was a selector bug. You can get the branch with the fix here (it hasn't been officially released)

https://github.com/tapmodo/Jcrop/pull/75

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