Image format not supported for SVG images

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
aliaksandr
Posts: 3
Joined: Fri Aug 15, 2025 12:31 pm

Image format not supported for SVG images

Post by aliaksandr »

Hi,

I'm upgrading to version 26.1 of the Oxygen Web Author Component and have noticed that SVG images are not displaying in the editor.
I installed the `web-author-svg-plugin` and I also tried to install the `web-author-imageio-plugin` but that didn't help.

What am I missing? I didn't have any problems rendering SVG in version 21.

Here is the debug log:

Code: Select all

2025-08-15 13:33:15,689 DEBUG [ http-nio-38080-exec-10 ] ro.sync.ecss.images.l - Create image for http://localhost:28080/webapp_editor?sourceDocPath=concept_test_1.dita&destDocPath=test.svg
2025-08-15 13:33:15,690 DEBUG [ http-nio-38080-exec-10 ] ro.sync.ecss.images.ImageHandlerDispatcher - Header changed. Start parsing for: http://localhost:28080/webapp_editor?sourceDocPath=concept_test_1.dita&destDocPath=test.svg
2025-08-15 13:33:15,691 DEBUG [ http-nio-38080-exec-10 ] ro.sync.ecss.images.ImageHandlerDispatcher - Catch our parse exception, detected first opening tag.
2025-08-15 13:33:15,691 DEBUG [ http-nio-38080-exec-10 ] ro.sync.ecss.images.w - Image format not supported: http://localhost:28080/webapp_editor?sourceDocPath=concept_test_1.dita&destDocPath=test.svg
ro.sync.ecss.images.t: Unsupported image format.
	at ro.sync.ecss.images.l.y(Unknown Source)
	at ro.sync.ecss.images.x.nb(Unknown Source)
	at ro.sync.ecss.images.w.qb(Unknown Source)
	at ro.sync.exml.workspace.b.d.b.optimizeImage(Unknown Source)
	at ro.sync.servlet.RESTAssetLoader.optimizeImage(RESTAssetLoader.java:706)
	at ro.sync.servlet.RESTAssetLoader.loadNormalImage(RESTAssetLoader.java:645)
	at ro.sync.servlet.RESTAssetLoader.loadImageHdpi(RESTAssetLoader.java:193)
	at ro.sync.servlet.RESTAssetLoader.loadImage(RESTAssetLoader.java:280)
Thanks
cosminef
Site Admin
Posts: 259
Joined: Wed Aug 30, 2023 2:33 pm

Re: Image format not supported for SVG images

Post by cosminef »

Hello,

We noticed in the log that the image URL includes query parameters like sourceDocPath=concept_test_1.dita and destDocPath=test.svg. These look like they might come from a custom implementation or customization. Could you please confirm if these parameters are part of your integration or plugin?

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
aliaksandr
Posts: 3
Joined: Fri Aug 15, 2025 12:31 pm

Re: Image format not supported for SVG images

Post by aliaksandr »

Hi,

Yes, it's part of the custom implementation.
I use the same approach for all images and have no problems with PNG, in my test cases only with SVG.
I have already tested on the server side, if I receive and send the result, everything works.

And just FYI I'm using the `ro.sync.ecss.extensions.api.StylesFilter` implementation to update the styles.

Code: Select all

styles.setProperty(Styles.KEY_MIXED_CONTENT, new StaticContent[]{new URIContent(requestUrl, builder.toString())});
Best,
Aliaksandr
Last edited by aliaksandr on Tue Aug 19, 2025 10:45 am, edited 1 time in total.
cosminef
Site Admin
Posts: 259
Joined: Wed Aug 30, 2023 2:33 pm

Re: Image format not supported for SVG images

Post by cosminef »

Hello,

Thank you for your reply.

Could you please confirm what Content-Type is set on the server response for the SVG files?
Also, could you share a bit more about the architecture for handling SVGs in this context?

You can share these details via email at support@oxygenxml.com.

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
aliaksandr
Posts: 3
Joined: Fri Aug 15, 2025 12:31 pm

Re: Image format not supported for SVG images

Post by aliaksandr »

Hi,

Yes, the Content-Type header was not set. I added it, and now it's working. 8)
Thanks for your help!

Best,
Aliaksandr
cosminef
Site Admin
Posts: 259
Joined: Wed Aug 30, 2023 2:33 pm

Re: Image format not supported for SVG images

Post by cosminef »

Hello,

Great to hear it’s working now, thanks for confirming!

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
Post Reply