nicolashmln / strapi-plugin-responsive-image

Custom responsive image formats for https://strapi.io
154 stars 28 forks source link

WebP Mime type #16

Closed EternalBlack closed 1 year ago

EternalBlack commented 2 years ago

Generating WebP works fine out of the box but the mime type appears to remain the one of the original format instead of image/webp.

    "formats": {
        "large": {
            "ext": ".webp",
            "url": "/uploads/large_v_Qdy_Oj_N2zq_I_05d0ee103d.webp",
            "hash": "large_v_Qdy_Oj_N2zq_I_05d0ee103d",
            "mime": "image/jpeg",
            "path": null,
            "size": 58.94,
            "width": 1000,
            "height": 1113
        },
    }
nicolashmln commented 2 years ago

Thanks, I'll have a look

StructByLightning commented 1 year ago

This is still an issue. The file is correctly converted to webp, but both the mime type and the filename extension stay as png.

nicolashmln commented 1 year ago

Will be fixed on next release