feat: update image shortcode to work with animated gifs
This commit is contained in:
parent
b4734e0d83
commit
dac9981705
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ const imageShortcode = async (
|
||||||
formats: [...formats, null],
|
formats: [...formats, null],
|
||||||
outputDir: "dist/assets/images",
|
outputDir: "dist/assets/images",
|
||||||
urlPath: "/assets/images",
|
urlPath: "/assets/images",
|
||||||
|
sharpOptions: {
|
||||||
|
animated: true,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const lowsrc = metadata.jpeg[metadata.jpeg.length - 1];
|
const lowsrc = metadata.jpeg[metadata.jpeg.length - 1];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue