drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

PNG export getting wrong scaling for SVG logo

Open vesajaaskelainen opened this issue 11 months ago • 1 comments

Preflight Checklist

  • [X] I agree to follow the Code of Conduct that this project adheres to.
  • [X] 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
  • Add images: https://www.jenkins.io/images/logos/jenkins/jenkins.svg
  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.

vesajaaskelainen avatar Jan 09 '25 09:01 vesajaaskelainen