类似框中的照片变形
我已在我的网站上嵌入了 Facebook Like 框 iframe,但它使照片倾斜/扭曲。它们被拉长了。它们在实际的 Facebook 页面上看起来很好,只是嵌入的照片搞砸了。直到大约两周前这才成为问题。
两个样本:www.photographsbyjim.com 和 www.riflesinc.com
I have embeded the Facebook Like box iframe on my web site and it's skewing/distorting the photos. They are elongated. They look fine on the actual Fb page, it's the embedded photos that are messed up. It was not a problem until about 2 weeks ago.
Two samples: www.photographsbyjim.com and www.riflesinc.com
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它们对我来说看起来很完美..
They look perfect to me..
我对 Facebook 使用的算法进行了逆向工程,它相当复杂。我不知道他们在想什么,但他们无疑是故意让这种扭曲发生的。
据我所知,只有 171 x 320 的图片不会失真。
大卫
I've reverse-engineered the algorithm that Facebook are using, and it's quite complex. I don't know what they're thinking, but they undoubtedly intend for the distortion to happen.
As far as I can tell, only a picture 171 x 320 will not be distorted.
David
在不同的浏览器中,它似乎会发生不同的情况。 IE 和 Firefox 显示一些扭曲的照片,Safari 和 Chrome 显示不同的扭曲的照片。
It appears to happen differently in different browsers. IE and Firefox display some photos distorted and Safari and Chrome are displaying different ones distorted.