-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Feature: Add svg:// and image:// to imagesource #2725
base: main
Are you sure you want to change the base?
Conversation
… because there is a 2000 bytes limitation of the Uri string.
…cause it is the same
In c# a Raw string can be used to avoid escaping https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/raw-string-literal for example
|
What is the use case? Small demos or apps, that don't want to have all the overhead to add a file to the source code. The code for a pin is a one liner as svg code. But if you have to save the code to a file and do all this things to copy the file to local file system, then it is very hard. On the other side, it is a enlargement of the code about two additional switch entries and two functions shouldn't be the problem. |
Following schemas are added in this pull request:
svg:// svg string
image:// binary image encoded as base64 (could be an svg string encoded as base64)