parameters: (lottie, layer, idx)
docstring: Generates the dictionary corresponding to layers/image.json
  
      Args:
          lottie (dict)       : Lottie generated image stored here
          layer  (common.Layer.Layer) : Synfig format image layer
          idx    (int)        : Stores the index(number of) of image layer
  
      Returns:
          (None)
docstring_summary: Generates the dictionary corresponding to layers/image.json
docstring_tokens: Generates the dictionary corresponding to layers / image . json
function: def gen_layer_image(lottie, layer, idx):
      """
      Generates the dictionary corresponding to layers/image.json
  
      Args:
          lottie (dict)       : Lottie generated image stored here
          layer  (common.Layer.Layer) : Synfig format image layer
          idx    (int)        : Stores the index(number of) of image layer
  
      Returns:
          (None)
      """
      layer.add_offset()
  
      lottie["ddd"] = settings.DEFAULT_3D
      lottie["ind"] = idx
      lottie["ty"] = settings.LAYER_IMAGE_TYPE
      lottie["nm"] = layer.get_description()
      lottie["sr"] = settings.LAYER_DEFAULT_STRETCH
      lottie["ks"] = {}   # Transform properties to be filled
  
      settings.lottie_format["assets"].append({})
      st = add_image_asset(settings.lottie_format["assets"][-1], layer)
      asset = settings.lottie_format["assets"][-1]
  
      # setting class (jpg, png)
      lottie["cl"] = asset["p"].split(".")[-1]
  
      # setting the reference id
      lottie["refId"] = asset["id"]
  
      st["tl"].animate("vector")
      st["br"].animate("vector")
  
      st["scale"] = gen_image_scale(st["tl"], st["br"], asset["w"], asset["h"])
      # Animation of this scale is needed again, as helpers/transform does not do
      # path calculation again
      st["scale"].animate("image_scale")
  
      anchor = settings.DEFAULT_ANCHOR
      rotation = settings.DEFAULT_ROTATION
      opacity = layer.get_param("amount")
      opacity.animate("opacity")
  
      gen_helpers_transform(lottie["ks"], st["tl"], anchor, st["scale"], rotation, opacity)
  
  
      lottie["ao"] = settings.LAYER_DEFAULT_AUTO_ORIENT
  
      lottie["ip"] = settings.lottie_format["ip"]
      lottie["op"] = settings.lottie_format["op"]
      lottie["st"] = 0            # Don't know yet
      get_blend(lottie, layer)
function_tokens: def gen_layer_image ( lottie , layer , idx ) : layer . add_offset ( ) lottie [ "ddd" ] = settings . DEFAULT_3D lottie [ "ind" ] = idx lottie [ "ty" ] = settings . LAYER_IMAGE_TYPE lottie [ "nm" ] = layer . get_description ( ) lottie [ "sr" ] = settings . LAYER_DEFAULT_STRETCH lottie [ "ks" ] = { } # Transform properties to be filled settings . lottie_format [ "assets" ] . append ( { } ) st = add_image_asset ( settings . lottie_format [ "assets" ] [ - 1 ] , layer ) asset = settings . lottie_format [ "assets" ] [ - 1 ] # setting class (jpg, png) lottie [ "cl" ] = asset [ "p" ] . split ( "." ) [ - 1 ] # setting the reference id lottie [ "refId" ] = asset [ "id" ] st [ "tl" ] . animate ( "vector" ) st [ "br" ] . animate ( "vector" ) st [ "scale" ] = gen_image_scale ( st [ "tl" ] , st [ "br" ] , asset [ "w" ] , asset [ "h" ] ) # Animation of this scale is needed again, as helpers/transform does not do # path calculation again st [ "scale" ] . animate ( "image_scale" ) anchor = settings . DEFAULT_ANCHOR rotation = settings . DEFAULT_ROTATION opacity = layer . get_param ( "amount" ) opacity . animate ( "opacity" ) gen_helpers_transform ( lottie [ "ks" ] , st [ "tl" ] , anchor , st [ "scale" ] , rotation , opacity ) lottie [ "ao" ] = settings . LAYER_DEFAULT_AUTO_ORIENT lottie [ "ip" ] = settings . lottie_format [ "ip" ] lottie [ "op" ] = settings . lottie_format [ "op" ] lottie [ "st" ] = 0 # Don't know yet get_blend ( lottie , layer )