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

Incorrectness of exported SVG file #11

Open
starkdmi opened this issue Jun 27, 2021 · 2 comments
Open

Incorrectness of exported SVG file #11

starkdmi opened this issue Jun 27, 2021 · 2 comments
Milestone

Comments

@starkdmi
Copy link

Fisrt of all it's great python implementation of avatar generation, thanks for your time!

The PNG format looks good when exported, while SVG format has some fill/sizes mistakes i can't catch. On attaches you can see how SVG file previewed on macOS and how it looks when oppened in Vectornator. I also tried some python libs to work with SVG data, but layers/shapes/fills looks like on screenshots in Vectornator. On macOS it looks almost good, but the white space is much bigger in compare to other svg previews on my PC, so the size may be incorrect somewhere.

Do you now where it may occur? Is it error in main.svg markdown or maybe Python's SVGParser implemenation?
I use the latest version of package, environment macOS, Python 3.

Vectornator

Vectornator_Moved

macOS Preview

@kebu
Copy link
Owner

kebu commented Jun 29, 2021

I'll look at this issue. I don't have Vectornator but I will check it on Affinity Designer.
SVG files are based on original library with some fixes.

@kebu kebu added this to the 1.2 milestone Jun 29, 2021
@starkdmi
Copy link
Author

Hmm, the original library does the same and website too, it's about skinl hair and clothes fill shapes, seems like they are rectangles and do not follow face/tshirt shapes. I temprorary resolved it by setting transparent colors for these properties and manyally set it after rendering in python.

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

No branches or pull requests

2 participants