Skip to content

FInal render different than preview for SVG #1330

@BrayanLope5

Description

@BrayanLope5

I am using SVG images and no matter how I bring it into remotion, the final mp4 is different than the preview. I am using styled component and using scale to scale an svg. The preview shows the correct scaling but the final render seems to show the original size of the svg.

Preview with scaling using styled-components
preview

Preview without scaling
preview_without_scaling

Final render with scaling using styled-components
final_render

I tried changing --disable-headless but I keep having an error with the browser launching. Probably a different issue. I am on linux and have all dependencies installed. I tried viewing the preview on both, Firefox and Chromium and both give me the same preview btw. Also, changing other attributes with styled components on the same svg does work. Like chaning opacity and other css attributes, it's just the scaling that causes problems.

I am new to javascript in general and specially new to remotion (first project), and I love it so far. Thank you!:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions