瀏覽代碼

Logic was wrong for selecting the image width.

pull/24/head
Ben Kurtovic 11 年之前
父節點
當前提交
6acb88a156
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      copyvios/background.py

+ 1
- 1
copyvios/background.py 查看文件

@@ -108,7 +108,7 @@ def _get_site():
def _build_url(screen, filename, url, imgwidth, imgheight):
width = screen["width"]
if float(imgwidth) / imgheight > float(screen["width"]) / screen["height"]:
width = int(float(imgwidth) / imgheight * screen["width"])
width = int(float(imgwidth) / imgheight * screen["height"])
if width >= imgwidth:
return url
url = url.replace("/commons/", "/commons/thumb/")


Loading…
取消
儲存