Field value inside function

i am stucked… i try to use in frontend
<?= $image->crop($block->imageCropRatio()->value())->url() ?>

blueprint for imageCropRatio is:

  imageCropRatio:
    label:
      en: Image crop Ratio
      de: Bildausschnittsverhältnis
    type: select
    default: '400, 400'
    options: 
      '400, 400': 1:1
      '200, 400': 1:2
      '133, 400': 1:3
      '100, 400': 1:4
      '80, 400': 1:5
      '400, 200': 2:1
      '400, 133': 3:1
      '400, 100': 4:1      
      '400, 80': 5:1

as far as i can see, the value is allways wrapped in marks… so it is used like crop('400, 200') instead of crop(400, 200)

what do i oversee?

Create an array from the values, then use individually.

$crop = $page->ImageCropRatio()->split(',');

echo $page->image()->crop($crop[0] ?? 200, $crop[1] ?? 200);

Fall back to default values if there is nothing set.

thx a lot. that helped me to get my solution