Tutorial: Calculating for resizing images, etc.

Discuss any other topics here
Post Reply
Matte
Posts: 321
Joined: Fri Oct 19, 2007 7:49 pm

Tutorial: Calculating for resizing images, etc.

Post by Matte »

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.
User avatar
Destron
Posts: 520
Joined: Thu Apr 19, 2007 7:30 pm

Re: Tutorial: Calculating for resizing images, etc.

Post by Destron »

Good tut, but you can bypass all this by using an image editor like Photoshop or GIMP. :)
Matte
Posts: 321
Joined: Fri Oct 19, 2007 7:49 pm

Re: Tutorial: Calculating for resizing images, etc.

Post by Matte »

Destron wrote:Good tut, but you can bypass all this by using an image editor like Photoshop or GIMP. :)
I normally use both, and indeed, it is easier. But I prefer MS Paint for some things.
Thanks.
User avatar
Agentarrow
Posts: 1346
Joined: Thu Jun 28, 2007 4:34 pm
Location: Kyiv, Ukraine
Contact:

Re: Tutorial: Calculating for resizing images, etc.

Post by Agentarrow »

HP image zone has a resizer. It does it all for you, you hit "keep current Scale" and choose your side value. or if it isn't a square image (as in having a 128x130 image) you can just uncheck the box and type in the needed dimensions.

RF also comes with the image resizer where you put in the image and choose the proper size, though that only does powers of two.
Last edited by Agentarrow on Tue Sep 02, 2008 5:47 am, edited 1 time in total.
AgentArrow Home
The greater good is but a point of view...
Matte
Posts: 321
Joined: Fri Oct 19, 2007 7:49 pm

Re: Tutorial: Calculating for resizing images, etc.

Post by Matte »

Pretty unneccessary (wth I don't remember how to spell it lol) tutorial then...
User avatar
Destron
Posts: 520
Joined: Thu Apr 19, 2007 7:30 pm

Re: Tutorial: Calculating for resizing images, etc.

Post by Destron »

In MSPaint you can also just go to image>attributes and change the actual dimensions. :lol:
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Re: Tutorial: Calculating for resizing images, etc.

Post by Jay »

yes but that does not scale the image and therefore is useless... :wink:
Everyone can see the difficult, but only the wise can see the simple.
-----
Post Reply