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

Support PNG as the page icon #4214

Closed
gabrieltempass opened this issue Dec 24, 2021 · 1 comment · Fixed by #4272
Closed

Support PNG as the page icon #4214

gabrieltempass opened this issue Dec 24, 2021 · 1 comment · Fixed by #4272

Comments

@gabrieltempass
Copy link

Right now, if you use st.set_page_config() to set a PNG as the page icon, it seems that the function will convert the image to a JPEG (losing its transparent background properties):

output_format="JPEG",

So a PNG like this:
favicon

Will end up in the page icon like this:
image

It would be nice to have the option to set a PNG as the page icon and maintain its transparency.

@rbeauchemin
Copy link
Contributor

I am also facing this, but found a way to fix it. I'll post a PR with the change to support transparency.

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 a pull request may close this issue.

2 participants