1
我在我的网站上使用简易缩略图。它一般工作正常。 但现在我想为Facebook创建一个产品Feed,图片需要为600x600px的正方形。我怎样才能裁剪与Django Easy Thumbnails?
它看起来像这样:
thumbnailer = get_thumbnailer(v.product.image)
thumbnail_options = {
'crop': '50,0', #tried smart, scale and all kinds of combos
'size': (600, 600)
}
resized_image = thumbnailer.get_thumbnail(thumbnail_options)
的问题是,我总是最后一个得到尺寸600px的,和对方< 600px的。 我可以让它像智能选项那样做,但是以我得到方形图像的方式裁剪?
预先感谢您!
我认为这个参数是'upscale' –
确实!就是这样。谢谢Lauri! 我已将作物改为“智能”并添加了“高档”:True – htomika