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

svg icons not rendered #255

Open
mnboos opened this issue Oct 1, 2019 · 1 comment
Open

svg icons not rendered #255

mnboos opened this issue Oct 1, 2019 · 1 comment
Labels

Comments

@mnboos
Copy link
Collaborator

mnboos commented Oct 1, 2019

The svg icons are not rendered by QGIS (and other tools as well), whereas some tools don't have any problems with the clipping-trick like below:

<svg width="40px" height="40px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 40 40">
        <defs>
                <clipPath id="cut-off-bottom">
                        <rect x="0" y="0" width="40" height="40"/>
                </clipPath>
        </defs>
        <image clip-path="url(#cut-off-bottom)" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAAAoCAYAAADAOHfQAAAABmJLR0QA/wD/AP+gvaeTAAANfklEQVR42u1dB3QVxxUF9wK2SRzICZwUpxeHNOG4hJZDkYRoQqaFIkSHgIBwMAFjhFCEKDIgUUSTDYQIBVEFGENCkSAQMCoILA7xCSAJG5AwAasjTe6Tds1n/8y2v7t86f855x4++jtv387O/TPz3ps3TZp4UQkMDHwuJCRkBvARcB3YZ0bOmTNnHj948OA7GzduzFuwYMEXkyZNqhk0aBAbOHDglxg3blxtdHR06dq1ay/s2rUrOjk5+SmnnpMx9gjQDpgGpAC5wC0FcqTv6JoAquPXz/kSMpoxb4b3NFRISABwA2AuqDAi48SJE92SkpIKIyIimEKOJoYOHcqWLl16bd++fSE2EqMNEAcUMuOlAIgFWvuqfn4CeymBQaBAoJRDrDydxH05MTHxRr9+/QwTV4nevXuzxYsXF4PIv7SQGC2ABKCCeV5IxjLgBV/Rz09gEwTu1avXT8LCwh51gLy9gHIemXr27LlQq/7OnTt30+jpKXGVoCn35s2b0y0gx5vADWZ9+QwIbez6GSldu3Z9Fu/uGZ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u4kVZGcXTY0vWRxStCjint8rHZ9Wlpaulrjh4eHe7RLKTs7m6n9SNCae9u2bTsNp5Wtra1PzN49wIJpc0C9rFrhcQiG08qSJMqa0WGr58QlGSRL5bCGUIuybNiFB7J3NFgrtBTCFqXowAOsJDDkddFrjZYLzkPStE6SddqIi4kSu1NaWi25vKkzhyT+xO4m9JNsLswbQGHAjcKNJG1EcDUovNvE4qIMDAGpw9Sux1GiT4uis0RHq9DIStsPaW1bWVlZ95n+ZuRoFbonjhzVc3QJ5aHaLnwj9h2tksZ0HLKtpZ+NR6sI9fMwy4ZdCGwUfmA8yL9cHuqkDQQOkC3gIO80PXXocDMQyrHDzXCQWgVObdDtLmNmDzcLalcPLz3crCOmxwQrDzezIMuGXajL3uHE4WYj3mLsg2N8/HGe5wR2zYJQYZURS3GP3XrJKxc6XhSW6Vt2v0iastO9jD4T8x8vqks/K7Js2GjQervBHvAtF7h2XlE8WIDVBKazhM3WxXlJe0RpZz0B+YBhNNvh6bMx/wHfWnaQYFo2eSPqpvYNncBSvqsbcuI5PFS7Jl5WMjIy2mKkvBkaGuoxcUkGGauOHz/+M6v0Q0duASRIG+w9LSQDkzf2gq/o9zBLgyew9Cv5vhR91dWbGxv+2SCcmFBE7iSjxKU6dNoCEsl3t0s/dOo2QByl2TKTV0AKiWztq/r5CWySwBh1+1AGjobS6IhhfgIW43nJycl5MECVTpw4sZZOFXQ9YZD+Rt/RNfv3759LdZzST9pgQDuFptG+Amnj/S0XMtDnHOk7uiZAj4XZV/TzE/g+/g+Clt85DBm3iAAAAABJRU5ErkJggg==" />
</svg>
@mnboos
Copy link
Collaborator Author

mnboos commented Oct 1, 2019

See qgis/QGIS#32075

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

No branches or pull requests

1 participant