diff --git a/admin/sync/themes.go b/admin/sync/themes.go index a9b5366e..ce30240f 100644 --- a/admin/sync/themes.go +++ b/admin/sync/themes.go @@ -57,7 +57,7 @@ func resizePicture(importedPath string, rect image.Rectangle) error { dst := image.NewRGBA(rect) draw.CatmullRom.Scale(dst, rect, src, src.Bounds(), draw.Over, nil) - dstFile, err := os.Create(importedPath) + dstFile, err := os.Create(strings.TrimSuffix(importedPath, ".jpg") + ".thumb.jpg") if err != nil { return err } @@ -66,6 +66,16 @@ func resizePicture(importedPath string, rect image.Rectangle) error { if err = jpeg.Encode(dstFile, dst, &jpeg.Options{100}); err != nil { return err } + } else { + dstFile, err := os.Create(strings.TrimSuffix(importedPath, ".jpg") + ".thumb.jpg") + if err != nil { + return err + } + defer dstFile.Close() + + if err = jpeg.Encode(dstFile, src, &jpeg.Options{100}); err != nil { + return err + } } } return nil diff --git a/frontend/static/css/fic.css b/frontend/static/css/fic.css index 5143eaea..b868cb61 100644 --- a/frontend/static/css/fic.css +++ b/frontend/static/css/fic.css @@ -331,7 +331,7 @@ img { margin-bottom: -15rem; } .page-header h1 { - text-shadow: 0 0 5px rgba(255,255,255,0.9) + text-shadow: 0 0 15px rgba(255,255,255,0.95), 0 0 5px rgb(255,255,255) } .page-header h1, .page-header h1 a { color: black; diff --git a/frontend/static/index.html b/frontend/static/index.html index 2c5fd3bd..2190d40a 100644 --- a/frontend/static/index.html +++ b/frontend/static/index.html @@ -134,7 +134,7 @@