This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 390136 - "Unsupported or unrecognized format" for SVG in inlinemediaobject
Summary: "Unsupported or unrecognized format" for SVG in inlinemediaobject
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X
: P3 major (vote)
Target Milestone: 1.1.0 M1   Edit
Assignee: Holger Voormann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-22 06:18 EDT by Jens Bannmann CLA
Modified: 2013-01-26 17:36 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Bannmann CLA 2012-09-22 06:18:27 EDT
I have a Docbook v5 document which includes the following markup in section titles and table entries:

<inlinemediaobject>
<imageobject>
<imagedata fileref="myfile.svg" width="0.65cm"/>
</imageobject>
</inlinemediaobject>

When opening it, Vex encounters this exception:

org.eclipse.swt.SWTException: Unsupported or unrecognized format
	at org.eclipse.swt.SWT.error(SWT.java:4361)
	at org.eclipse.swt.SWT.error(SWT.java:4276)
	at org.eclipse.swt.SWT.error(SWT.java:4247)
	at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.java:84)
	at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:147)
	at org.eclipse.vex.ui.internal.swt.SwtGraphics.loadImageData(SwtGraphics.java:153)
	at org.eclipse.vex.ui.internal.swt.SwtGraphics.getImage(SwtGraphics.java:141)
	at org.eclipse.vex.core.internal.layout.ImageBox.createWithHeight(ImageBox.java:63)
	(...)
Comment 1 Florian Thienel CLA 2013-01-20 04:55:18 EST
I added handling for SWTException in SwtGraphics.loadImageData since this is the exception of choice when a graphics format is not supported. (ac597f8bba8e494eea53f29fec774c0cad0d11bb)
Comment 2 Florian Thienel CLA 2013-01-26 17:36:04 EST
Released 1.1.0 M1