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

Change widgets file format from .png to .svg #4694

Open
milotype opened this issue Oct 14, 2020 · 2 comments
Open

Change widgets file format from .png to .svg #4694

milotype opened this issue Oct 14, 2020 · 2 comments
Labels
enhancement Adding or requesting a new feature. undecided These features might not be implemented. Can be prioritized by sponsorship.

Comments

@milotype
Copy link
Contributor

Describe the bug
Widgets "Big status badge", "Small status badge" and "Panel" are not generated in svg format.
This is a general issue!

To Reproduce

  1. Go to 'https://hosted.weblate.org/widgets/weblate/'
  2. Click on the "Big status badge", "Small status badge" or "Panel" widget
  3. Scroll down to 'HTML code'
  4. See file extension ".png"

Expected behavior
All widgets should be generated in svg format.

Additional context
This may be just my own preference, but IMO, svg is a widely used and supported format nowadays. The format supports image scalability as well as text searchability. IMO, pixel-based png files are not ideal.
Take a look at https://planner-todo.web.app/, scroll down to the section Use Planner in your Language. The widget displays pixelated.

Conclusion
If there is no specific reason for the png format, I'd sudgest to change all widgets to svg format.

@nijel
Copy link
Member

nijel commented Oct 15, 2020

  • Panel has to be a PNG (or JPG, but that would lead to artifacts) as that one is used as OpenGraph Image, which does not support SVG.
  • PNG allows to use our branded font, what is not possible in SVG (you can use only fonts installed on the system).

https://planner-todo.web.app/

Most images are weirdly scaled up on that page, I don't think that is the best example :-).

@nijel nijel added enhancement Adding or requesting a new feature. undecided These features might not be implemented. Can be prioritized by sponsorship. labels Oct 20, 2020
@github-actions
Copy link

This issue has been put aside. Currently, it is unclear whether it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate. Please try to clarify the use case or consider proposing something more generic to make it useful to more users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature. undecided These features might not be implemented. Can be prioritized by sponsorship.
Projects
None yet
Development

No branches or pull requests

2 participants