Skip to content

Commit

Permalink
fix: add Arabic font support and SVG upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 31, 2024
1 parent 1653f56 commit 22a2903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/handlers/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ func Favicon() web.HandlerFunc {
bytes = q.Result.Content
contentType = q.Result.ContentType
} else {
bytes, err = os.ReadFile(env.Path("favicon.png"))
//bytes, err = os.ReadFile(env.Path("favicon.png"))
bytes, err = os.ReadFile(env.Path("public/assets/images/fav.png"))
contentType = "image/png"
if err != nil {
return c.Failure(err)
Expand All @@ -198,7 +199,6 @@ func Favicon() web.HandlerFunc {

opts := []imagic.ImageOperation{}
if size > 0 {
opts = append(opts, imagic.Padding(size*10/100))
opts = append(opts, imagic.Resize(size))
}

Expand Down
Binary file added public/assets/images/fav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 22a2903

Please sign in to comment.