You can try this package which provides various functions for image manipulation, resizing, cropping and much more.
Take a look at code usage examples at this page.
You should be able to resize image for given ressolution, with proper calculations you could be able to resize it into given size also.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…