You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sharp does support tiff but browser doesn't. Please add tiff support for source images with force convertion to jpg, png and webp.
For example, I added this to node_modules/responsive-loader/lib/utils.js:
constMIMES={//all the rest mime types,tif: "image/tiff"};constEXTS={//all the rest exts,"image/tiff": "tif"};
and some rules to webpack.config.js:
{test: /\.(jpe?g|webp|tif)$/i,use: {loader: "responsive-loader",options: {//any other options,format: "jpg",adapter: require("responsive-loader/sharp"),},},},
The text was updated successfully, but these errors were encountered:
Sharp does support tiff but browser doesn't. Please add tiff support for source images with force convertion to jpg, png and webp.
For example, I added this to
node_modules/responsive-loader/lib/utils.js
:and some rules to
webpack.config.js
:The text was updated successfully, but these errors were encountered: