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

Image size not preserved when exporting 'API Connections' shape to SVG #4814

Open
2 tasks done
KaineVarley opened this issue Nov 25, 2024 · 0 comments
Open
2 tasks done

Comments

@KaineVarley
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 exporting a drawing containing the API Connections shape to SVG, the image size isn't being preserved and the image is showing as very small. This doesn't seem to affect when exporting as PDF, PNG or JPEG.

To Reproduce
Steps to reproduce the behavior:

  1. Click Create New Diagram.
  2. Select Blank Diagram and click the Create button.
  3. In Search Shapes box (top, left), type Azure SQL and hit Enter.
  4. Select the SQL Database shape to drop it onto the canvas.
  5. Clear the Search Shapes box and type API, then hit Enter.
  6. Select the API Connections shape to drop it onto the canvas.
  7. Use the File > Export as > SVG... option to export the drawing as an SVG image.
  8. Use the File > Export as > PDF... option (or the PNG or JPEG options) to export the drawing as an alternative image.
  9. Compare the SVG image against the other exported formats.
  10. The SVG image format has the wrong image size for the API Connections icon.

Expected behavior
I would expect that the API Connections icon to be the same size as on the drawing canvas and in the other exported image formats.

Screenshots
If applicable, add screenshots to help explain your problem.

Exported images

Correct versions

PDF
SVG Export Issue.drawio.pdf

PNG
SVG Export Issue drawio.png

JPEG
SVG Export Issue.jpg

Issue version

SVG
SVG Export Issue drawio.svg

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

  • draw.io version: v24.7.17

Desktop (please complete the following information):

  • OS: Windows 11 Enterprise
  • Version: 23H2
  • OS Build 22631.4541

Additional context
Add any other context about the problem here.
N/A

@m-mohamedin m-mohamedin transferred this issue from jgraph/drawio-desktop Dec 26, 2024
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