Skip to content

Commit

Permalink
Fix extension breaking for non-PNG avatars (#15)
Browse files Browse the repository at this point in the history
This registers GIF and JPEG is image formats that can be decoded.
  • Loading branch information
spenserblack committed Nov 27, 2023
1 parent 38e0e8d commit 9837bc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/avatar/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package avatar

import (
"image"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
"net/http"
)
Expand Down

0 comments on commit 9837bc4

Please sign in to comment.