Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't allow svg images as screenshots #699

Open
razzeee opened this issue Feb 18, 2025 · 5 comments
Open

Don't allow svg images as screenshots #699

razzeee opened this issue Feb 18, 2025 · 5 comments

Comments

@razzeee
Copy link
Contributor

razzeee commented Feb 18, 2025

SVG images shouldn't be allowed as screenshots, I don't think that makes sense.

E.g. https://gitlab.freedesktop.org/rncbc/qpwgraph/-/blob/46933a4f67816c75a57a1f414c28ec1f9ca76df5/src/appdata/org.rncbc.qpwgraph.metainfo.xml#L24 should fail

@ximion
Copy link
Owner

ximion commented Feb 18, 2025

Yeah, this is actually completely unsupported. This would fail with an error in appstreamcli compose or appstream-generator, but we can have at least a rudimentary check in the regular validator as well :-)

@bbhtt
Copy link

bbhtt commented Feb 18, 2025

This would fail with an error in appstreamcli compose

It doesn't https://flathub.org/apps/org.rncbc.qpwgraph

@ximion
Copy link
Owner

ximion commented Feb 18, 2025

Wait, we just render it? I'm impressed! I guess I removed some restrictions when rewriting the compose code in C 😅

@bbhtt
Copy link

bbhtt commented Feb 24, 2025

I blocked it in linter last week and haven't seen any complaints.

@ximion
Copy link
Owner

ximion commented Feb 24, 2025

Yeah, SVG isn't allowed for screenshots - although we are a bit more lenient with the formats we accept in MetaInfo (unlike generated AppStream Catalog data where the supported output images are strictly defined).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants