webp
This commit is contained in:
parent
c4e95417a8
commit
0a043b87ad
@ -64,7 +64,7 @@ def results(request):
|
||||
|
||||
|
||||
def photos(request):
|
||||
files = glob.glob("photos/*.jpg")
|
||||
files = glob.glob("photos/*.webp")
|
||||
rtn = []
|
||||
for file in files:
|
||||
img = PIL.Image.open(file)
|
||||
|
@ -77,15 +77,14 @@ class Main extends Component {
|
||||
height: photo.original_height,
|
||||
})
|
||||
};
|
||||
console.log(photos, this.state.photos)
|
||||
return (
|
||||
<div>
|
||||
<ModalGateway>
|
||||
{this.state.photoIsOpen ? (
|
||||
{this.state.photoIsOpen &&
|
||||
<Modal onClose={this.togglePhoto}>
|
||||
<Carousel views={photos} currentIndex={this.state.currentImage} />
|
||||
</Modal>
|
||||
) : null}
|
||||
}
|
||||
</ModalGateway>
|
||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<div class="container">
|
||||
|
Loading…
x
Reference in New Issue
Block a user