Open noone-silent opened 1 month ago
Thanks for reporting!
I'm actually not sure about its cause since it should be the issue with sharp.
https://github.com/lovell/sharp/issues/3589 might be related, so could you try setting the config below?
It overrides the default chromaSubsampling
value used by astro-better-image-service
and uses the sharp's default settings.
import betterImageService from "astro-better-image-service";
import { defineConfig } from "astro/config";
export default defineConfig({
integrations: [
betterImageService({
sharp: {
avif: {
chromaSubsampling: undefined
},
},
}),
],
});
Some image processing can result in larger files:
Same image with compress: