fix jpeg thumbnails

This commit is contained in:
David Christofas
2021-03-10 10:06:19 +01:00
parent 98709a8dfc
commit ff618c076a
4 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ const (
// Request combines all parameters provided when requesting a thumbnail
type Request struct {
Filepath string
Filetype string
Extension string
Etag string
Width int
Height int
@@ -50,7 +50,7 @@ func NewRequest(r *http.Request) (Request, error) {
tr := Request{
Filepath: path,
Filetype: strings.Replace(filepath.Ext(path), ".", "", 1),
Extension: filepath.Ext(path),
Etag: etag,
Width: width,
Height: height,