Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

yEd Graph Editor export svg format image error

0 votes

The export of svg images was normal before, but today the following error suddenly appeared:

java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0

at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)

at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:333)

at org.apache.batik.svggen.ImageHandlerBase64Encoder.handleHREF(ImageHandlerBase64Encoder.java:75)

at org.apache.batik.svggen.DefaultImageHandler.handleImage(DefaultImageHandler.java:63)

at org.apache.batik.svggen.SimpleImageHandler.handleImage(SimpleImageHandler.java:100)

at org.apache.batik.svggen.SVGGraphics2D.drawImage(SVGGraphics2D.java:677)

at y.J.qB.ā(Unknown Source)

at y.J.qB.ā(Unknown Source)

at y.J.GA.ā(Unknown Source)

at y.J.GA.ć(Unknown Source)

at y.J.GA.paintComponent(Unknown Source)

at y.J.U.č(Unknown Source)

at B.A.D.B.ā(Unknown Source)

at y.H.G.ā(Unknown Source)

at y.B.A.M.Đ(Unknown Source)

at com.yworks.A.B.G.H.Đ(Unknown Source)

at y.B.j.č(Unknown Source)

at y.B.j.ā(Unknown Source)

at y.B.j.ă(Unknown Source)

at com.yworks.A.B.P.X$A.Ă(Unknown Source)

at com.yworks.A.B.P.X$A.ā(Unknown Source)

at com.yworks.A.A.C.A.ā(Unknown Source)

at com.yworks.A.A.C.A.ą(Unknown Source)

at com.yworks.A.A.C.A$1.run(Unknown Source)

at com.yworks.A.A.D.E.ā(Unknown Source)

at com.yworks.A.L.i.actionPerformed(Unknown Source)

at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)

at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)

at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)

at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)

at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)

at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)

at java.desktop/java.awt.Component.processMouseEvent(Component.java:6621)

at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)

at java.desktop/java.awt.Component.processEvent(Component.java:6386)

at java.desktop/java.awt.Container.processEvent(Container.java:2266)

at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)

at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)

at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)

at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)

at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)

at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)

at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)

at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)

at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)

at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)

at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)

at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)

at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)

at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)

at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)

at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)

at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)

at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)

at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)

at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

in Help by

May I ask which version of yEd you are using (see "Help" -> "About")?

Would it be possible for you to upload a sample GraphML file that lets us reproduce the problem? If you do so, please be sure not to include any sensible data in the sample diagram.

Thank u, I have solved this quesion by clicking "Transparent Background" when I export svg format image. However, When I forget to click this term, it will cause errror like above message. My version is 3.24. I will send u a GraphML file by email.
Do you have a custom background image set for yEd's editor area?
I had a custom image for "Icon Properties" which in node "Properties View"-"Label",I adjusted the height and width. For Palette, I used Flowchart.I will send u a origin image file by email later.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Legal Disclosure | Privacy Policy
...