Custom CropRatio and cover: true for the image settings in a section generates an error

Hello.
Using ratio with a custom value and the cover argument seems to cause a bug :

sections:
  files:
    type: files
    label: Fichiers
    template: image
    layout: cards
    text: "{{file.firstname}}"
    info: "{{ file.caption }}"
    sortBy: firstname asc
    image:
      ratio: "{{file.cropRatio}}"
      cover: true

« files » section could not be loaded: Undefined array key 1

----

Cropratio: 8/10

----

Is this a known bug? Or am I missing something here?
Thanks.

I haven’t tried it out myself yet, but I saw you have the image option twice. Could that be it?

Whoops. Thanks :). Edited my post. I still have the issue… !

Can confirm that there currently is no real support for Kirby queries for the ratio option, as it is used before the query is resolved. Opened a PR to fix it: fix: Model image ratio as query by distantnative · Pull Request #8504 · getkirby/kirby · GitHub