-
Notifications
You must be signed in to change notification settings - Fork 22
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
Setup proxy to convert SVG to PNG #7982
Comments
Can we just have the user upload in the Admin Console, convert it, and then store the PNG on S3? Or is there a reason to do it on the fly given that the icon won't change frequently? |
That should work. @grahamlangford mentioned we need the icon to load for unauthenticated users but we can design the backend so that works (e.g. construct the icon URL in Chrome instead of returning the icon from an authenticated PixieBrix endpoint). How often will this feature be used? I'm wondering if it's better to just require teams to contact PixieBrix support to do this (convert to PNG + upload to S3) manually? Considering we don't need this feature once w3c/webextensions#462 is done. |
Considering that https://github.com/GewoonJaap/svg-to-png-cf-worker is already tested and it works, I'd probably say it's the quickest solution, at least until someone finds it and starts spamming it. A rate limiter (via CF page rules) can certainly help. |
Don't we return the icon URL via the theme currently?
It would be whenever we onboard an enterprise customer, or want to demo custom branding to an enterprise customer. @BrandonPxBx this would be good to triage vs. the other self-serve administration efforts. In many cases, the png is already publicly available, we'd just need a way to provide the png URL to the extension |
This is correct, when I was speaking with Johnny earlier, I mistakenly thought we were managing the theme with managedStorage, but we're just checking for a partnerId and organizationId: pixiebrix-extension/src/themes/themeStore.ts Lines 55 to 68 in 6ca9daa
|
Closing - we'll instead do icon upload/hosting |
User Story
As an end user, I want to convert an SVG to a PNG, so that it can be used as a theme icon.
Motivation
In #7925, we need to convert an SVG to a PNG (see here).
Note this is a temporary workaround until browsers support dynamic SVG icons: w3c/webextensions#462
Acceptance Criteria
Implementation Notes
The text was updated successfully, but these errors were encountered: