我在 Contentful 中有各种尺寸的图像,即宽度为 200 像素、600 像素、800 像素、1000 像素等。
如果我responsiveresolution
按照 gatsby.js 文档使用,它将提高我的小图像的分辨率:
allContentfulProduct {
edges {
node {
id
productName
image {
responsiveResolution(width: 600) {
width
height
src
srcSet
}
}
}
}
}
}
如何从 Contentful 获得图像的自然分辨率?responsiveresolution
在 gatsby.js 中可以使用更好的文档!