hey,

I would like to use glide crop functionality in combination with parameters set on the image fieldset. But somehow the syntax seems not to work.

HTML:

{{ assets:background_image}}
    <img class="responsive" src="{{ glide:url width="1920" height="420" fit="crop" }}"
      data-src-xs="{{ glide:url fit="crop-{{ focus }}" width="{{ image_width }}" height="{{ image_height }}" }}" alt="{{ alt }}" />
  {{ /assets:background_image }}

fieldsets/responsive_images.yaml

sections:
  main:
    display: Main
    fields:
      title:
        display: Title
        type: text
        localizable: true
      alt:
        type: text
        display: Alt
      image_width:
        type: integer
        display: 'Image Width'
        width: 50
      image_height:
        type: integer
        display: 'Image Height'
        width: 50
      sm_image_width:
        type: integer
        display: 'Mobile (sm) Image Width'
        width: 50
      sm_image_height:
        type: integer
        display: 'Mobile (sm) Image Height'
        width: 50
      md_image_height:
        type: integer
        display: 'Tablet (md) Image Height'
        width: 50
      md_image_width:
        type: integer
        display: 'Tablet (md) Image Width'
        width: 50
taxonomies: true
title: 'Responsive Images'

assets/responsive_images.yaml

path: assets
url: /assets
title: 'Responsive Images'
fieldset: responsive_images
assets:
  img/redwood-james-irvine-trail.jpg:
    title: 'Some Title'
    alt: 'Some Alt'
    image_height: 420
    image_width: 10
    focus: 52-49
  img/redwood-balance.jpg:
    title: 'Some image'
    alt: 'Some alt'
    image_width: 1920
    image_height: 400
    focus: 70-49

Resulting HTML:

<img class="responsive" src="/img/asset/bWFpbi9pbWcvcmVkd29vZC1iYWxhbmNlLmpwZw==?w=1920&amp;h=420&amp;fit=crop&amp;s=a1e8040080e2c6746441fa030e304ec1" data-src-xs="/img/asset/bWFpbi9pbWcvcmVkd29vZC1iYWxhbmNlLmpwZw==?fit=crop-50-50&amp;s=636033d368b0afce9c4c86602c25cd7b" height="" }}"="" alt="">

As you can see the height="" } is totally wrong. Should be inside the url path with h=420