Replies: 3 comments 10 replies
-
Hi @eddyw Thanks for reporting! You should never see the image become larger than the original. We'll take a look and see why the |
Beta Was this translation helpful? Give feedback.
-
I'm getting something similar -- a large animated .webp image on my Next.js site weighs in at 1.7 MB locally with The delta between filesizes is a lot closer for me now than for OP in December, but it's still a significant hit for use cases like my blog, where images are by far the heaviest requests on the page. Is this something that Vercel considers to be a bug and will be investigating, or is this an intentional tradeoff between quality and cost that won't be improving further? If the latter, maybe I could work around it by implementing my own image optimization using serverless functions. |
Beta Was this translation helpful? Give feedback.
-
Popping in after having to scour google: I'm still having this issue with animated WebP images. Local size is 577kb, served image on the production site is 2.8mb. Did anyone ever figure this out @styfle @eddyw ? Running |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm using the default loader on NextJS 10.0.3 to deliver optimized images. Running a production build locally generates smaller file size images than on Vercel. On Vercel, they're usually twice as big than locally (MacOS Big Sur).
I added
resolutions
to resolvesharp
library to latest or the one currently in use locally:That managed to reduce Vercel generated images by around ~2kB. However, all file size images are still twice as big. The following table illustrates a comparison for some images delivered using
next/image
:This can be reproduced in the
image-component
example provided in the NextJS docs:Repo: https://github.com/eddyw/image-component (clone of
image-component
)Preview: http://image-component-git-master.eddyw.vercel.app/
Running locally, the example on the
Intrinsic
image, for instance, results in:Is there a way to achieve a consistent behavior? this makes it impossible to fully leverage NextJS image optimization for us:
Beta Was this translation helpful? Give feedback.
All reactions