blog

this is imgs

You're resizing based on aspect ratio, but the current logic may not work well for both portrait and landscape images because the resized image might not be centered, or the resizing might not be handled properly for both dimensions.