Take the 2-minute tour ×

Hello I am building a social network similar to facebook and I really need some help on how to handle the images in my website. I would like to know how sites like facebook manage the resizing of their images. An example would be looking at someones photo album. The length and width are not just simply changed. They are done in a more professional way to make the image still look clear and not stretched. Do they use a special tool for this. Another example would be profile pics when they are loaded to your message wall. Your friends profile pics are centered and cropped accordingly and then re sized. How do they go about doing this. Any help would be greatly appreciated.

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

They resize proportionally with an imaging library like GD, Imagick or others.

The presentation in the gray area is just that, presentation so HTML and CSS.

share|improve this answer
add comment

They stretch the images proportionally so that they don't look wrong; if you make the image 37.5% wider... you also make it 37.5% taller.

If we knew what language you are familiar with, we could probably suggest something to help with this.

share|improve this answer
Im using php... –  Dom Sep 13 '10 at 20:22
add comment

Your Answer


