Skip to content

Dynamic image support #26761

@nazmulfahim

Description

@nazmulfahim

Describe the feature you'd like to request

In a dynamic app where images can have different width and height. for example I may have posts from different users where they upload images of different size, width, height and extension. nextjs current Image component requires a numeric value of width and height. if I set the height to something it causes most of the images to show inappropriately. in other words if I set the image width and height to 500 and original image width is 500 but height is 700 it makes the image looks odd.

Describe the solution you'd like

Remove the numeric value requirement for Image component. if possible make sure Image components automatically detect intrinsic values.

Describe alternatives you've considered

I don't have any alternative solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions