|
| 1 | +--- |
| 2 | +sidebar_position: 5 |
| 3 | +--- |
| 4 | + |
| 5 | +# Comparison with similar libraries |
| 6 | + |
| 7 | +It is very difficult to write this page objectively, but on the other hand I understand that it is very important for developers. |
| 8 | + |
| 9 | +We will do our best to avoid bias and provide fair and accurate information, but if you find something wrong or inaccurate, please let us know by submitting an Issue! |
| 10 | + |
| 11 | +## next-optimized-images |
| 12 | + |
| 13 | +https://github.com/cyrilwanner/next-optimized-images |
| 14 | + |
| 15 | +It is probably the most famous of Next.js' image optimization libraries. |
| 16 | +Compared to our library, it has the following characteristics |
| 17 | + |
| 18 | +- Optimize images using `webpack`'s `loader` feature. |
| 19 | +- No need to use `next/image` |
| 20 | + |
| 21 | +Let me list some of the disadvantages. |
| 22 | + |
| 23 | +- Update stopped on August 9, 2020. |
| 24 | +- Bundle size is bloated when long strings such as srcSet are needed to bundle images with webpack. |
| 25 | + |
| 26 | +Because of the above features, we would like to compare our library with this one and recommend our library to the following users. |
| 27 | + |
| 28 | +- **I want to use `next/image` to optimize images.** |
| 29 | +- **I'm using `responsive-loader`, but I'm concerned about the bundle size of images.** |
| 30 | + |
| 31 | +## next-image-export-optimizer |
| 32 | + |
| 33 | +https://github.com/Niels-IO/next-image-export-optimizer |
| 34 | + |
| 35 | +Since this library is very similar to ours, it would be very good for you to try this one as well. |
| 36 | + |
| 37 | +A brief comparison with our library reveals the following characteristics for your reference. |
| 38 | + |
| 39 | +- Import and use your own components. |
| 40 | +- Use only strings for the `src` attribute. |
| 41 | +- Specify a directory, such as `public/images`, and the images in it will be processed. |
| 42 | + |
| 43 | +Given these characteristics and the benefits of our library, we believe that our library is recommended for the following users |
| 44 | + |
| 45 | +- **I want to use all options of `next/image`.** |
| 46 | +- **I want to specify an imported image in the src attribute.(https://nextjs.org/docs/basic-features/image-optimization#local-images)** |
| 47 | +- **I want to optimize it with the minimum necessary to match the props specified in `next/image`.** (Do you need only 1x or 2x, or do you need as much as the `deviceSizes`, etc.) |
| 48 | + |
| 49 | +## Please let me know if there are others! |
| 50 | + |
| 51 | +If you know of any other similar libraries, please let us know [here](https://github.com/dc7290/next-export-optimize-images/issues/new)! |
| 52 | +I'll cry and be happy lol.😂 |
0 commit comments