Using an alternative format

Markdown:

![A different format]({property_name.src})

A different format

YAML definition:

    
images:
  - name: property_name
    image: $lib/images/planet.webp
    width: 800
    format: png

    

JSON of the property:

    
{
    "format": "png",
    "width": 800,
    "height": 457,
    "space": "srgb",
    "channels": 3,
    "depth": "uchar",
    "isProgressive": false,
    "hasProfile": false,
    "hasAlpha": false,
    "aspect": 1.75,
    "allowUpscale": false,
    "src": "/_app/immutable/assets/planet.B1O7Q3iq.png"
}
    

If you need a different format for whatever reason you can use the format option. The following formats are allowed:

See also: https://github.com/JonasKruckenberg/imagetools/blob/main/docs/directives.md#format