动态调整大小的图像og:image好吗? [英] Dynamically resized images for og:image ok?
问题描述
我使用ImageResizer.net根据一个较大的源图像动态创建图像尺寸。这样做是像url一样,就像这样:www.siteUrl.com/ImagePath/ImageName.jpg?width=90&height=90&crop=auto&quality=90。这将图像调整为90x90像素,裁剪,并将jpeg质量设置为90%。
I use ImageResizer.net to create images to dimensions I need dynamically, based on one larger source image. It's done in a url-like fashion, like so: "www.siteUrl.com/ImagePath/ImageName.jpg?width=90&height=90&crop=auto&quality=90". This resizes the image to 90x90 pixels, cropping, and setting jpeg quality to 90%.
这个URL可以被og:image所接受,这样当有人喜欢/链接对我的内容在Facebook中,它显示了og:image属性中的图像缩略图?
Will this url be acceptable to og:image , so that when someone likes/links to my content within Facebook it shows a thumbnail of the image inside the og:image property?
推荐答案
是这个URL接受og:图像和工作正常...
Yes this URL accepts og:image and works fine...
我已经使用了这样的例子。 < meta property =og:imagecontent =http://www.xyz.com/Handlers/ImageGenerator.ashx?id=de69f1e1-ee64-4bd9-80b8-8546bca4ef45&w = 50& amp; h = 50/>
I have already used this like this eg. <meta property="og:image" content="http://www.xyz.com/Handlers/ImageGenerator.ashx?id=de69f1e1-ee64-4bd9-80b8-8546bca4ef45&w=50&h=50" />
这里我使用图像处理程序文件并传递图像ID,并保存图像ID在我的数据库与图像路径相关联,它在Facebook上正常工作....
Here i am using Image handler file and passing image id and image id is saved in my database associated with image path and it works fine on facebook....
这篇关于动态调整大小的图像og:image好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!