Skip to content

fix: support SVG icons for applications - MEED-10330 - Meeds-io/meeds#4045 #578

Merged
hakermi merged 1 commit intodevelopfrom
dev-30032026
Mar 30, 2026
Merged

fix: support SVG icons for applications - MEED-10330 - Meeds-io/meeds#4045 #578
hakermi merged 1 commit intodevelopfrom
dev-30032026

Conversation

@hakermi
Copy link
Copy Markdown
Member

@hakermi hakermi commented Mar 30, 2026

Prior to this change, SVG images added as icons to applications were not displayed after saving. This happened because the application illustration URL was hardcoded to use a PNG MIME type, which does not work for vector images like SVG.

Root Cause:

  • The uploaded SVG icon was correctly shown in the edit drawer, but after saving, the system reused a hardcoded PNG MIME type for the illustration URL.
  • This caused SVG icons to break, since they are not bitmap images.

Fix:

  • Store the correct MIME type from FileInfo when uploading the icon.
  • Reuse the stored MIME type when generating the illustration URL, ensuring SVG icons are correctly displayed in saved applications.

fixes Meeds-io/meeds#4045

…#4045 (#577)

Prior to this change, SVG images added as icons to applications were not
displayed after saving. This happened because the application
illustration URL was hardcoded to use a PNG MIME type, which does not
work for vector images like SVG.

Root Cause:
- The uploaded SVG icon was correctly shown in the edit drawer, but
after saving, the system reused a hardcoded PNG MIME type for the
illustration URL.
- This caused SVG icons to break, since they are not bitmap images.

Fix:
- Store the correct MIME type from FileInfo when uploading the icon.
- Reuse the stored MIME type when generating the illustration URL,
ensuring SVG icons are correctly displayed in saved applications.
@hakermi hakermi enabled auto-merge (squash) March 30, 2026 15:12
@hakermi hakermi requested a review from Jihed525 March 30, 2026 15:14
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube Cloud

@hakermi hakermi merged commit 071dae4 into develop Mar 30, 2026
8 of 9 checks passed
@hakermi hakermi deleted the dev-30032026 branch March 30, 2026 15:41
exo-swf pushed a commit that referenced this pull request Mar 30, 2026
…#4045  (#578)

Prior to this change, SVG images added as icons to applications were not
displayed after saving. This happened because the application
illustration URL was hardcoded to use a PNG MIME type, which does not
work for vector images like SVG.

Root Cause:
- The uploaded SVG icon was correctly shown in the edit drawer, but
after saving, the system reused a hardcoded PNG MIME type for the
illustration URL.
- This caused SVG icons to break, since they are not bitmap images.

Fix:
- Store the correct MIME type from FileInfo when uploading the icon.
- Reuse the stored MIME type when generating the illustration URL,
ensuring SVG icons are correctly displayed in saved applications.

fixes Meeds-io/meeds#4045
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AppCenter] Svg image isn't displayed in applications

2 participants