Skip to content

Support SVG wiki logo uploads - #1286

Open
addshore wants to merge 1 commit into
mainfrom
mw-svg-logos
Open

addshore wants to merge 1 commit into
mainfrom
mw-svg-logos

Conversation

@addshore

Copy link
Copy Markdown
Collaborator

Accept PNG and SVG logos up to 2 MiB. Sanitise SVGs before storage, check embedded CSS using Wikimedia's CSS parser, and generate PNG logo and favicon fallbacks with rsvg-convert (as svg support is less than png support).
Basically all based on mediawikis own handling.

Store the vector URL in wwLogoSvg and clear it when a PNG replaces the logo. Add regression coverage and document the processing requirements.

The MW change wbstack/mediawiki#569 would be needed ahead of this.

Bug: T356389

Accept PNG and SVG logos up to 2 MiB. Sanitise SVGs before storage,
check embedded CSS using Wikimedia's CSS parser, and generate PNG
logo and favicon fallbacks with rsvg-convert (as svg support is less
than png support).
Basically all based on mediawikis own handling.

Store the vector URL in wwLogoSvg and clear it when a PNG replaces
the logo. Add regression coverage and document the processing requirements.

The MW change wbstack/mediawiki#569
would be needed ahead of this.

Bug: T356389
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.

1 participant