Search Docs
Loading...
Skip to content

Supported File Formats for Import

When building creative applications with CE.SDK, understanding which file formats your users can import is crucial for delivering a smooth editing experience. CE.SDK supports a comprehensive range of modern media formats.

This guide provides a complete reference of supported file formats for importing media, templates, and fonts into CE.SDK on web platforms.

Supported Import Formats#

CE.SDK supports importing the following media types directly in the browser:

Category Supported Formats
Images .png, .apng, .jpeg, .jpg, .gif, .webp, .svg, .bmp
Video .mp4 (H.264/AVC, H.265/HEVC), .mov (H.264/AVC, H.265/HEVC), .webm (VP8, VP9, AV1)
Audio .mp3, .m4a, .mp4 (AAC or MP3), .mov (AAC or MP3), .webm (Opus or Vorbis)
Animation .json (Lottie), .lottie (dotLottie)
Templates .idml (InDesign), .psd (Photoshop), .scene (CE.SDK Native)

A Lottie .json file or a dotLottie .lottie archive set as a video fill plays as one block. To import a Lottie as editable blocks, use the @imgly/lottie-importer package: LottieImporter.fromJSON() takes the text of a .json file, LottieImporter.fromFile() the bytes of a .json or .lottie file, and LottieImporter.fromURL() its URL. See Import Lottie Animations.

Video and Audio Codecs#

While container formats (.mp4, .mov, .webm) define how media is packaged, codecs determine how the content is compressed. CE.SDK supports the following codecs for web playback and editing:

Video Codecs#

  • H.264 / AVC (in .mp4 or .mov) – Universally supported across all modern browsers
  • H.265 / HEVC (in .mp4 or .mov) – Requires platform-specific support; availability varies by browser and operating system
  • VP8, VP9, AV1 (in .webm) – Modern web-native codecs with broad browser support

Audio Codecs#

  • MP3 (in .mp3 files or within .mp4/.mov containers)
  • AAC (in .m4a, .mp4, or .mov containers)
  • Opus, Vorbis (in .webm containers)

Size Limits and Constraints#

CE.SDK processes all media client-side in the browser, which means performance is bounded by the user’s hardware capabilities. Here are the practical limits to keep in mind:

Image Resolution Limits#

Constraint Recommendation / Limit
Input Resolution Maximum input resolution is 4096×4096 pixels. Images from external sources (e.g., Unsplash) are resized to this size before rendering on the canvas. You can modify this value using the maxImageSize setting.
Output Resolution There is no enforced output resolution limit. Theoretically, the editor supports output sizes up to 16,384×16,384 pixels. However, practical limits depend on the device’s GPU capabilities and available memory.

All image processing in CE.SDK is handled client-side, so these values depend on the maximum texture size supported by the user’s hardware. The default limit of 4096×4096 is a safe baseline that works universally. Higher resolutions (e.g., 8192×8192) may work on certain devices but could fail on others during export if the GPU texture size is exceeded.

Video Resolution and Duration Limits#

Constraint Recommendation / Limit
Resolution Up to 4K UHD is supported for playback and export, depending on the user’s hardware and available GPU resources. For import, CE.SDK does not impose artificial limits, but maximum video size is bounded by the 32-bit address space of WebAssembly (wasm32) and the engine’s memory limit (4 GB on desktop, 2 GB on phones and tablets).
Frame Rate 30 FPS at 1080p is broadly supported; 60 FPS and high-res exports benefit from hardware acceleration
Duration Stories and reels of up to 2 minutes are fully supported. Longer videos are also supported, but we generally found a maximum duration of 10 minutes to be a good balance for a smooth editing experience and a pleasant export duration of around one minute on modern hardware.

Format-Specific Considerations#

SVG Limitations#

CE.SDK uses Skia for SVG parsing and rendering. While most SVG files render correctly, there are some important limitations to be aware of:

Text Elements#

  • Text draws in a font of its font-family when the scene or a font asset source has one, in the closest weight and style.
  • Any other family draws in the engine’s default font, so the text keeps its position but may look different. Convert text to paths in your vector editor when its exact look matters.
  • Only the first entry of a font-family list counts, and later entries never match. Roboto, Arial, sans-serif looks for Roboto, then uses the default font. A generic first entry is the exception: serif, monospace and cursive draw in Source Serif Pro, Source Code Pro and Caveat when a font asset source has them.
  • SVG text uses the fallback fonts of text blocks. An emoji draws in the emoji font (defaultEmojiFontFileUri). Another character that the font does not have draws in fallbackFontUri, or in an IMG.LY hosted fallback font when useSystemFontFallback is on. A character that no fallback font has draws as the missing-character mark of the font. Arabic and Hebrew text draws from right to left.
  • Text in an SVG cannot be edited. It draws as part of the image.

Styling Limitations#

  • CSS rules in <style> elements apply to type, class and ID selectors, *, combinations of these such as rect.logo, descendant and child combinators, and comma-separated lists of them. Rules inside @media screen and @media all apply too.
  • CSS rules with attribute selectors, pseudo-classes or sibling combinators, media queries with features or not, and other at-rules, are ignored – use presentation attributes instead.
  • A file whose CSS rules would need more than about 33 million matching steps fails to load.
  • RGBA color syntax is not supported – use fill-opacity and stroke-opacity attributes.
  • When exporting SVGs from design tools, choose the “presentation attributes” option.

Unsupported SVG Elements#

The following SVG elements are not supported:

  • Animation elements (<animate>)
  • Foreign object (<foreignObject>)
  • Text-related elements (<altGlyph>, <font>, <glyph>)
  • Script elements (<script>)
  • Some filter elements (<feComponentTransfer>, <feConvolveMatrix>, <feTile>, <feDropShadow>)
  • Inlined SVGs via <image> or <feImage> elements

WebP Support#

WebP images are fully supported for import. CE.SDK handles both lossy and lossless WebP formats, including images with transparency (alpha channel). WebP provides excellent compression with high quality, making it ideal for web-based creative applications.

Animated Image Considerations (GIF and APNG)#

CE.SDK handles animated GIF and APNG files based on scene type:

  • Design scenes: rendered as a static image showing the first frame.
  • Video scenes: imported as a looping video fill, with frame timing and duration parsed from the file’s metadata.

For vector-based animations, consider Lottie (.json or .lottie). For complex animated content, prefer .mp4 or .webm, which offer better compression and broader codec support.

Template Format Details#

CE.SDK supports importing templates from popular design applications:

  • IDML (InDesign Markup Language) – Import layouts and designs created in Adobe InDesign
  • PSD (Photoshop Document) – Import layered Photoshop files with preserved layer structure
  • SCENE – CE.SDK’s native scene format, optimized for fast loading and editing

When importing IDML or PSD files, CE.SDK preserves layer hierarchy, text formatting, and design structure where possible. Some advanced effects or features specific to the source application may require manual adjustment after import.

Font Format Support#

CE.SDK supports modern web font formats for typography:

Format Description
.ttf TrueType Font
.otf OpenType Font
.woff Web Open Font Format
.woff2 Compressed Web Open Font Format 2

Best Practices#

Format Selection#

When building your application, consider these format recommendations:

  • Images: Use .webp for the best compression-to-quality ratio on the web. Fall back to .png for transparency or .jpeg for photographs without transparency.
  • Video: Prefer .mp4 with H.264 encoding for maximum browser compatibility. Use .webm for modern browsers when you need open-source codecs.
  • Audio: Use .mp3 for universal compatibility or .m4a (AAC) for better quality at smaller file sizes.
  • Templates: Use .scene format for CE.SDK-to-CE.SDK workflows, or import from .psd/.idml when migrating content from design tools.

Validation and Error Handling#

Always validate file formats before attempting import:

  1. Check MIME types on file upload to quickly reject unsupported formats
  2. Validate file extensions as a first line of defense
  3. Monitor file sizes to prevent memory issues with extremely large files
  4. Provide clear error messages to users when imports fail, explaining which formats are supported

Memory Management#

For web applications, be mindful of browser memory constraints:

  • Large video files (>100 MB) may cause performance issues or browser tab crashes
  • Multiple high-resolution images loaded simultaneously can exhaust GPU memory
  • Consider implementing lazy loading for asset libraries with many files
  • Provide progress indicators for large file imports to improve user experience

Checking Support in the Running Engine#

Use engine.editor.getFileFormats() to read the media formats available to the current engine. It reflects feature flags, license restrictions, and measured codec capabilities without fetching files or starting codec probes. Re-read it when those settings or capability results change.

Use engine.editor.checkFileSupport() to inspect a particular resource URI. The result has separate image, audio, and video uses, each with a status and a machine-readable reason. A container can support audio even when video is disabled. Resource load failures and invalid recognized native-media headers or containers raise structured engine errors. Unknown or foreign formats return unsupported uses without validating that content.

  • supported: the inspection found a supported path for that use.
  • unsupported: the format, retained codec, feature, or license prevents that use.
  • unchecked: the engine lacks measured decoder evidence.
  • pending: a required capability probe is still running.

The inspection field is format for catalog entries and metadata for concrete file checks. Metadata inspection validates headers or retained container tracks. It does not decode every pixel, frame, or sample, or guarantee all codec profiles and levels. Container parsing can discard unsupported source tracks; the result describes the tracks retained by the engine.

MIME recognition alone does not establish media support. Editable-design importers, such as PDF or PSD packages registered by your application, remain separate from these native media uses. Scene, archive, font, and animation workflows also have their own entry points.

See Retrieve MIME Type for runnable examples of the catalog and concrete resource checks.