Skip to content

Commit

Permalink
docs: ✏️ Revise comparisons for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
dc7290 committed May 27, 2022
1 parent f0f0294 commit eb94a0e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/docs/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ Since this library is very similar to ours, it would be very good for you to try
A brief comparison with our library reveals the following characteristics for your reference.

- Import and use your own components.
- Use only strings for the `src` attribute.
- Specify a directory, such as `public/images`, and the images in it will be processed.

Given these characteristics and the benefits of our library, we believe that our library is recommended for the following users
Let me list some of the disadvantages.

- All options for `next/image` are not available.
- Only strings can be specified in the src attribute.
- Images that are not used will also be optimized. (Increased build time)

Because of the above characteristics, the library is recommended for users other than those listed below.

- **I want to use all options of `next/image`.**
- **I want to specify an imported image in the src attribute.(https://nextjs.org/docs/basic-features/image-optimization#local-images)**
- **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.)
- I want to use `<ExportedImage />` instead of `<Image />`.

## Please let me know if there are others!

Expand Down

1 comment on commit eb94a0e

@vercel
Copy link

@vercel vercel bot commented on eb94a0e May 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.