Skip to content

Commit

Permalink
fix: size regression
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Nov 19, 2023
1 parent 3e94140 commit e4ae0ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impl/image_resizer/client/image_resizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ img, err := vips.NewImageFromBuffer(image)

if height > int(originalHeight) {
height = int(originalHeight)
width = int(originalHeight)
}

// Crop the image to the specified dimensions while maintaining the aspect ratio
Expand Down

0 comments on commit e4ae0ae

Please sign in to comment.