Request larger image from Wikimedia Commons
This commit is contained in:
parent
6cd2bfa6b0
commit
0c98ca921c
|
@ -233,7 +233,7 @@ def identifier_index():
|
||||||
|
|
||||||
@app.route("/commons/<filename>")
|
@app.route("/commons/<filename>")
|
||||||
def get_commons_image(filename):
|
def get_commons_image(filename):
|
||||||
detail = commons.image_detail([filename], thumbheight=600, thumbwidth=600)
|
detail = commons.image_detail([filename], thumbheight=1200, thumbwidth=1200)
|
||||||
image = detail[filename]
|
image = detail[filename]
|
||||||
return redirect(image["thumburl"])
|
return redirect(image["thumburl"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue