• Icon: Technical task Technical task
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.10.0 Beta4, 6.11.0 FF
    • None
    • None
    • bc6403b43 (dev), 5fc13d224 (6.10)

      Just like svg, Lottie files can contain raster images, either embedded/encoded in the Lottie file itself, or as URL reference to external files. They can only appear in top-level assets, which can only be referenced from Image layers. Adding support includes

      1. Adding the various asset and path handling options from svgtoqml to lottietoqml
      2. Fix up the QLottieImage class. Image handling is implemented in this virtual Lottie item, which does not correspond to an actual Lottie element, but to the static top-level asset that specifies the image. All fine, but the class still has implemented "position", "radius" and "center" properties, that do not make sense at all; there are no such info in the Lottie asset. Instead there needs to be (static) width, height, and url properties, which are.
      3. Implement the QLottieVisitor::render(QLottieImage&) method, using the info from the points above to fill in an ImageNodeInfo structure and call generateImageNode()
      4. Add a Lancelot test with embedded image, and possibly other tests to check the asset handling options (check how is this for svgtoqml)

        For Gerrit Dashboard: QTBUG-139313
        # Subject Branch Project Status CR V

            vgt Eirik Aavitsland
            vgt Eirik Aavitsland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes