Using Media in SVG Format in an Optimal Way

Modified on Mon, 1 Jun at 9:47 AM

When using media in SVG format, display issues may occur depending on the settings used to create the SVG file. This article explains how to optimize SVG files.

Possible Issues

The following issues may be caused by an SVG file:

  • The SVG media is displayed in the media search but not in the course itself.
  • The PDF export fails.
  • The SVG media is not displayed or appears very small in the exported PDF.
  • The SVG media does not upload correctly and is not displayed in the course preview.

Optimization Options

To create SVG files with the highest possible compatibility, it is recommended to keep the settings as simple as possible and avoid overly complex effects.

The following overview provides examples of settings that you should check when creating an SVG media file in a graphics program, or adjust if display issues occur:

  • Using the Symbols feature in Adobe Illustrator: This feature causes vectors to not be transferred to the SVG format using standard settings, which can lead to incorrect rendering, e.g. in web browsers. 
  • Using too much whitespace: A media item appearing too small may be caused by excessive whitespace around the actual graphic. In this case, remove the whitespace by cropping the canvas to fit the content.
  • Using a disallowed element in the SVG, e.g. <ContainsAiGeneratedContent>. 
  • Overly complex layer structure: Fewer nested groups and layers can help improve compatibility.
  • Overly complex filter effects, especially for drop shadows: Simpler filters help reduce complexity, particularly when multiple filters have been combined. 
  • Using 3D effects: Avoid 3D effects to keep complexity low.
  • Using feDropShadow: This tag is not allowed.
  • Missing "in2" attribute in the feComposite tag: Make sure the attribute is included when the feComposite tag is used.
  • Missing size specifications: Check that the appropriate values are provided for "width" and "height".
  • Using appropriate export settings: Use the SVG format SVG 1.1 and UTF-8 encoding.

Contact us if you have specific questions about the display of SVG media. We are happy to help.

Sie haben noch kein Autorentool zur Erstellung von Onlinekursen? Erfahren Sie, wie Sie mit Knowledgeworker Create interaktive Lerninhalte erstellen.
Don't have an authoring tool for creating online courses yet? Learn how to create interactive learning content with Knowledgeworker Create.
Sie haben noch kein Lernmanagementsystem? Werfen Sie einen Blick auf Knowledgeworker Share.
Don't have a learning management system yet? Have a look at Knowledgeworker Share.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article