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

PNG export getting wrong scaling for SVG logo #1954

Open
2 tasks done
vesajaaskelainen opened this issue Jan 9, 2025 · 0 comments
Open
2 tasks done

PNG export getting wrong scaling for SVG logo #1954

vesajaaskelainen opened this issue Jan 9, 2025 · 0 comments

Comments

@vesajaaskelainen
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug
When PNG exporting diagram with SVG file the output does not match what is seen in editor.

Originally tried to export as SVG and embed that in power point in Windows 11 but that demonstrated similar issue. Then switched to PNG and same thing.

Tried with latest draw.io desktop v26.0.4 in Ubuntu 24.04 as Snap image and it seems that Chrome displays the scaling of SVG nicely. But system viewer just blank on logos.

Tried also to set 300% scaling in PNG export so that more details would be present in PNG file but that does not seem to affect scaling issue.

To Reproduce
Steps to reproduce the behavior:

  1. Start draw.io (used one from Ubuntu's snap store)
  2. Blank diagram
  3. Create new library
  1. From library add Jenkins logo two times -- one scaled one normal
  2. Add thin box around them just to demonstrate scaling problem
  3. Take screen shot how it looks
  4. Export as png with default settings
  5. Compare screen shot of draw.io and exported png -- observe the scale difference

Expected behavior
They would look the same as in editor

Screenshots
Screen shot with editor:
Screen shot with editor

Scaling Problem With Default PNG export settings:
Scaling Problem With Default PNG export settings drawio

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version v26.0.4

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 LTS with latest updates

Tried also with Win11 with similar result.

Additional context
Add any other context about the problem here.

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

1 participant