views:

34

answers:

2

Are there any php libraries for this to re-scale or re-size photos down to whatever limit we set for height/width/size and also if users upload photos in gif png, or bmp then convert them to jpeg?

+1  A: 

Are there any php libraries for this to re-scale or re-size photos down to whatever limit we set for height/width/size and also if users upload photos in gif png, or bmp then convert them to jpeg?

GD and ImageMagick

(I'm ignoring the rest of your questions as they aren't programming related. I suggest you edit and remove those sections.)

David Dorward
+1  A: 

What aspect ratio and file sizes to use are largely subjective, but there are a few guidelines you may want to follow.

For aspect ratio the best thing to do (photographically at least) is to keep the same aspect as the original. I'd avoid stretching the photo in any way. If you have to, maybe crop it to fit a certain aspect ratio.

For file size, it really depends on what you want to do. Make them larger if you really want to retain a lot of quality and resolution.

There are many libraries available for image editing in PHP. I typically use GD. http://ca3.php.net/manual/en/refs.utilspec.image.php

jay.lee