|
Posted by leader on 02/01/07 06:56
On Thu, 01 Feb 2007 05:10:10 GMT, Curtis <dyersweb@verizon.net> wrote:
>On Wed, 31 Jan 2007 20:58:57 -0800, Kentor <kentor@gmail.com> wrote:
>
>> Hello,
>> I have users that submit images to my website. By default I choose to
>> make the width bigger than the height because usually pictures are
>> taken horizontally... But in some cases people take pictures
>> vertically so what I'm getting at is... can I know whether an image
>> was taken horizontally or vertically so I can make the proper width/
>> height lengths so that it looks nice and not kinda weird... because if
>> you make the width bigger than the height of an image that is supposed
>> to have a bigger height than width, it looks kinda ugly.. And also is
>> there a way to know when I've enlarged the image too much? because if
>> an image submitted was small and I make it bigger, then it also
>> becomes kind of ugly to look at because I guess there aren't enough
>> pixels... thanks for your help.
>>
>> Simon
>>
>
>If you are using the GD library, have a look at imagecopyresampled:
>
>Example: "Example 2. Resampling an image proportionally"
>http://php.net/imagecopyresampled
Also, the getimagesize function might provfe a helpful tool for some
decision-making.
Navigation:
[Reply to this message]
|