Skip to content

Query: Wide images getting cropped #2804

Discussion options

You must be logged in to vote

Thank you for the additional information; It looks to me like you should be using ResizeMode.Max. This constrains the resized image to fit the bounds of the given dimensions maintaining the original aspect ratio.

As a side note, i strongly recommend switching to the ImageTagHelper syntax where possible.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@priyanka107
Comment options

@JimBobSquarePants
Comment options

Answer selected by priyanka107
@priyanka107
Comment options

@JimBobSquarePants
Comment options

@priyanka107
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants