-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image not optimization and not convert origin to webp #25
Comments
Hi there, could you explain what the issue here is? |
So the thing is we have implemaneted the image optimizer plugin, now we are have the uploaded the images but its not getting convert in Webp format and the size we have given in the plugn files its not getting the same size. It will be very helpful for us if you can help us in this. thanks |
Hi @marlokessler have you gone through with the above query? We will be very grateful if you can help with this. Thanks |
I am also |
I have added code in config/plugin.js
"image-optimizer": { enabled: true, config: { include: ["jpeg", "jpg", "png"], exclude: ["gif"], formats: ["original", "webp", "avif"], sizes: [ { name: "xs", width: 300, }, { name: "sm", width: 768, }, { name: "md", width: 1280, }, { name: "lg", width: 1920, }, { name: "xl", width: 2840, // Won't create an image larger than the original size withoutEnlargement: true, }, { // Uses original size but still transforms for formats name: "original", }, ], additionalResolutions: [1.5, 3], quality: 70, }, },
`// ./src/extensions/upload/strapi-server.ts
import imageOptimizerService from "strapi-plugin-image-optimizer/dist/server/services/image-optimizer-service";
module.exports = (plugin) => {
plugin.services["image-manipulation"] = imageOptimizerService;
return plugin;
};`
The text was updated successfully, but these errors were encountered: