views:

56

answers:

2

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.

A: 

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.

ikanobori
A: 

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.

Dean J
Im using php...
Dom