Skip to content

enable content negotiation (e.g return Webp image if client supports webp) #521

@vincentsarago

Description

@vincentsarago

in

if not format:
format = ImageType.jpeg if data.mask.all() else ImageType.png

we return either a PNG or a JPEG based on the mask, but we could also return a Webp based on the request accept header value (see https://github.com/developmentseed/tifeatures/blob/6def23bc57b547fda06b718f493d4d20ec369a35/tifeatures/dependencies.py#L102-L114)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions