Tutorial: Calculating for resizing images, etc.
Posted: Fri Aug 22, 2008 8:03 pm
Most of the RF users have probably learned this at school, but I would like to help those who are younger and/or did not learn this.
E.G.: I have a 50*50 image, but I need to resize it to 48*48. You can spend all your time trying out to resize it and pressing CTRL+Z at every failed attempt, but a much easier way is to use this formula:
50/100*x=48
'x' is the percentage we need to make our image "bigger". Well not really bigger, because in MS Paint, 100% is the current size, so 99% will make it 0.1 times smaller, while 101% will make it 1.01 times bigger.
If we calculate this: we get the following step:
x=48/50/100
This isn't really clear, so we can use the following rule: a/b/c equals a/b*c.
x=48/50*100
Because we have our 48/50*100, we can say that this equals 48*2:
x=48*2=96
If we resize our image by 96%, we now get a 48*48 size image.
I hope this helped, feel free to ask questions.
E.G.: I have a 50*50 image, but I need to resize it to 48*48. You can spend all your time trying out to resize it and pressing CTRL+Z at every failed attempt, but a much easier way is to use this formula:
50/100*x=48
'x' is the percentage we need to make our image "bigger". Well not really bigger, because in MS Paint, 100% is the current size, so 99% will make it 0.1 times smaller, while 101% will make it 1.01 times bigger.
If we calculate this: we get the following step:
x=48/50/100
This isn't really clear, so we can use the following rule: a/b/c equals a/b*c.
x=48/50*100
Because we have our 48/50*100, we can say that this equals 48*2:
x=48*2=96
If we resize our image by 96%, we now get a 48*48 size image.
I hope this helped, feel free to ask questions.