Next Export Optimize Images
Optimize images at build time with Next.js.
Evolve Next.js into a complete static site generator.
Optimize images at build time
- Normally, to use `next/image` with `next export`, you need to use a cloud provider for image optimization. With this solution, however, you can optimize images at build time, eliminating the need for a cloud provider.
All options for `next/image` available
- There is no need to use any special components. Use `next/image` as usual, all its options are available.
Using `sharp`, so it's fast.
- It is fast because it uses `sharp` for image optimization. This is also the approach used in Next.js, which is much faster than other image processing libraries.
Cache prevents repeating the same optimization
- It has an internal cache mechanism so that the same images are not optimized repeatedly.