-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Background image is lost when saving as .svg #53
Comments
And encoding as base64 can be done as follows (courtesy of Stack Overflow): // Get the bytes array
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
byte[] byteArray = byteArrayOutputStream .toByteArray();
// Encode the bytes into base64
String encoded = Base64.encodeToString(byteArray, Base64.DEFAULT); |
I would prefer the linked object without the Base64 string. |
If we use an absolute path, I think the |
I would prefer something like the linked object in Inkscape:
Anyway the problem is retaining the image position o using a canvas the same size as the picture if there are no drawings outside. |
If you do like Inkscape does and resize the canvas size, the use case becomes
maybe too specific, but easy to solve. Maybe the xlink:href is enough.
|
It's possible to embed images on
.svg
files, as the following "example" shows:This is what inkscape saves.
The text was updated successfully, but these errors were encountered: