You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Lottie exporter] Cannot export if an imported asset is in the 'images' subdirectory #3471
Exporting an animation to lottie format currently copies all imported assets into an 'images' subdirectory (#936). If an imported asset was already in the 'images' subdirectory (I happened to name my assets directory 'images'), the export fails with a long and somewhat confusing stacktrace due to the fact that lottie-exporter uses the python function shutil.copy to put the asset in the images directory, and this function throws an exception when the source and the target file are the same.
To Reproduce
Steps to reproduce the behavior:
Create new synfig project.
Save it to some directory.
Manually create a subdirectory 'images' and put some jpg file in it.
Import that image in Synfig as a new layer.
Try to export to Lottie, see the break.
Expected behavior
If the file is already in the 'images' subdirectory, it does not have to be copied, so the export should work as expected.
Workaround: rename the assets directory to some other name.
Activity