JPEG is a valid gallery file. Closes #28

This commit is contained in:
Stash Dev 2019-03-23 16:30:10 -07:00
parent 543d2597ec
commit c73f78bb42
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ func (g *Gallery) listZipContents() ([]*zip.File, *zip.ReadCloser, error) {
continue
}
ext := filepath.Ext(file.Name)
if ext != ".jpg" && ext != ".png" && ext != ".gif" {
if ext != ".jpg" && ext != ".jpeg" && ext != ".png" && ext != ".gif" {
continue
}
if strings.Contains(file.Name, "__MACOSX") {