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] Do not copy images to other location while exporting #936
Currently, during export all images are copied into "images" subdirectory.
I suggest to keep all images in their respective locations instead. That will help to keep files in order if they are already organized in directories properly.
Initially I was doing as suggested by you in this issue. But due to that, some png image's were not rendering in the export(link), and hence I had to change it as it is now.
By default lottie uses images subdirectory as is done in the export now. I will see if it is possible without creating a new subdirectory.
Did you try with png or jpg format files? Because jpg format files have no problem if they are given the original address of the image. The problem comes in png format files. Still I will revert this commit: cae7d39 and see what happens.
Activity
AnishGG commentedon Sep 4, 2019
Initially I was doing as suggested by you in this issue. But due to that, some png image's were not rendering in the export(link), and hence I had to change it as it is now.
By default lottie uses
imagessubdirectory as is done in the export now. I will see if it is possible without creating a new subdirectory.morevnaproject commentedon Sep 7, 2019
That's weird... I tried to move files outside "images" subdir and edited JSON/HTML file manually - that worked for me.
AnishGG commentedon Sep 8, 2019
Did you try with png or jpg format files? Because jpg format files have no problem if they are given the original address of the image. The problem comes in png format files. Still I will revert this commit: cae7d39 and see what happens.
AnishGG commentedon Mar 31, 2020
Support for using original images as assests: https://github.com/airbnb/lottie-web/blob/e6ea3f1f40c0c6995dfd4642bd60733600b1af2f/CHANGELOG.md#v-564
morevnaproject commentedon Mar 31, 2020
I just tested it and if I change path to image, then everything works for me with png files -

I have moved image and changed "u" parameter. Tested with absolute and relative paths.
For current dir just set "u" parameter to "./", ^__^
AnishGG commentedon Mar 31, 2020
I will look into it again!
Thanks for checking this