Skip to content

Modern Docker Management, Designed for Everyone

fix: use png logo for emails instead of svg

Kyle Mendellc2948d5524b0
diff --git a/backend/internal/huma/handlers/appimages.go b/backend/internal/huma/handlers/appimages.go
index 9f88b87fd..4293b73b2 100644
--- a/backend/internal/huma/handlers/appimages.go
+++ b/backend/internal/huma/handlers/appimages.go
@@ -41,6 +41,15 @@ func RegisterAppImages(api huma.API, appImagesService *services.ApplicationImage
Tags: []string{"Application Images"},
}, h.GetLogo)
+ huma.Register(api, huma.Operation{
+ OperationID: "get-logo-email",
+ Method: http.MethodGet,
+ Path: "/app-images/logo-email",
+ Summary: "Get application logo for email",
+ Description: "Get the application logo image in PNG format for emails",
+ Tags: []string{"Application Images"},
+ }, h.GetLogoEmail)
+
huma.Register(api, huma.Operation{
OperationID: "get-favicon",
Method: http.MethodGet,
@@ -74,6 +83,15 @@ func (h *AppImagesHandler) GetLogo(ctx context.Context, input *GetLogoInput) (*G
return h.getImage(name)
}
+// GetLogoEmail returns the application logo image for emails (PNG).
+func (h *AppImagesHandler) GetLogoEmail(ctx context.Context, input *struct{}) (*GetAppImageOutput, error) {
+ if h.appImagesService == nil {
+ return nil, huma.Error500InternalServerError("service not available")
+ }
+
+ return h.getImage("logo-email")
+}
+
// GetFavicon returns the application favicon image.
func (h *AppImagesHandler) GetFavicon(ctx context.Context, input *struct{}) (*GetAppImageOutput, error) {
if h.appImagesService == nil {
diff --git a/backend/internal/services/notification_service.go b/backend/internal/services/notification_service.go
index 660b5e388..15154c23a 100644
--- a/backend/internal/services/notification_service.go
+++ b/backend/internal/services/notification_service.go
@@ -23,7 +23,7 @@ import (
"github.com/getarcaneapp/arcane/types/imageupdate"
)
-const logoURLPath = "/api/app-images/logo?full=true"
+const logoURLPath = "/api/app-images/logo-email"
type NotificationService struct {
db *database.DB
diff --git a/backend/resources/images/logo-email.png b/backend/resources/images/logo-email.png
new file mode 100644
index 000000000..b1a5a2fbb
Binary files /dev/null and b/backend/resources/images/logo-email.png differ