thumbnails
This commit is contained in:
parent
5856be9b29
commit
c4e95417a8
@ -70,6 +70,7 @@ def photos(request):
|
||||
img = PIL.Image.open(file)
|
||||
rtn.append({
|
||||
'original': '/' + file,
|
||||
'thumbnail': '/' + file.replace('photos/', 'photos/thumbnail/'),
|
||||
'original_width': img.width,
|
||||
'original_height': img.height,
|
||||
})
|
||||
|
@ -72,7 +72,7 @@ class Main extends Component {
|
||||
for (const photo of this.state.photos){
|
||||
photos.push({
|
||||
source: photo.original,
|
||||
src: photo.original,
|
||||
src: photo.thumbnail,
|
||||
width: photo.original_width,
|
||||
height: photo.original_height,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user