strapi-plugin-responsive-image icon indicating copy to clipboard operation
strapi-plugin-responsive-image copied to clipboard

WebP Mime type

Open EternalBlack opened this issue 4 years ago • 1 comments

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
        },
    }

EternalBlack avatar Nov 09 '21 12:11 EternalBlack

Thanks, I'll have a look

nicolashmln avatar Nov 18 '21 03:11 nicolashmln

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

StructByLightning avatar Jul 05 '23 17:07 StructByLightning

Will be fixed on next release

nicolashmln avatar Jul 07 '23 08:07 nicolashmln