fix #3
This commit is contained in:
parent
07d7c6511c
commit
66177139ef
@ -200,7 +200,7 @@ def photos(request):
|
||||
img = PIL.Image.open(file)
|
||||
rtn.append({
|
||||
'original': '/' + file.replace(".jpg", ".webp"),
|
||||
'thumbnail': '/' + file.replace('photos/', 'photos/thumbnail/').replace(".jpg", ".webp"),
|
||||
'thumbnail': '/' + file.replace(f'photos/{i}/', f'photos/{i}/thumbnail/').replace(".jpg", ".webp"),
|
||||
'original_width': img.width,
|
||||
'original_height': img.height,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user