winordietrying
Junior Member
- Sep 10, 2011
- 107
- 178
LOL!
Like someone said, use photoshop. It re-sizes while maintaining the image proportions. So if you enter a width, the height will automatically be calculated. If you don't have photoshop, you can use a free software called fotosizer.
But still to answer your original question:
If w1 >= w2 then w1/w2 = n.
Hence, h2 = h1/n (then round off h2 since pixels can't have decimals)
If w1 < w2 then w2/w1 = n.
Hence, h2 = h1*n (then round off h2)
Like someone said, use photoshop. It re-sizes while maintaining the image proportions. So if you enter a width, the height will automatically be calculated. If you don't have photoshop, you can use a free software called fotosizer.
But still to answer your original question:
If w1 >= w2 then w1/w2 = n.
Hence, h2 = h1/n (then round off h2 since pixels can't have decimals)
If w1 < w2 then w2/w1 = n.
Hence, h2 = h1*n (then round off h2)