Re: [PHP] checking the aspect ratio of an images

2007-06-08 Thread Robert Cummings
On Sat, 2007-06-09 at 04:55 +0800, Crayon Shin Chan wrote: > On Saturday 09 June 2007 02:21, Robert Cummings wrote: > > > As for how this affects the aspect ratio of an image... it doesn't > > really, but the person who said that "You can't really be 'approximate' > > when coding" didn't exactly c

Re: [PHP] checking the aspect ratio of an images

2007-06-08 Thread Crayon Shin Chan
On Saturday 09 June 2007 02:21, Robert Cummings wrote: > As for how this affects the aspect ratio of an image... it doesn't > really, but the person who said that "You can't really be 'approximate' > when coding" didn't exactly confine it to the question about aspect > ratio and an image. Taking

Re: [PHP] checking the aspect ratio of an images

2007-06-08 Thread Robert Cummings
On Sat, 2007-06-09 at 01:08 +0800, Crayon Shin Chan wrote: > On Friday 08 June 2007 22:17, tedd wrote: > > > >> Wednesday, June 6, 2007, 11:41:19 AM, you wrote: > > >> > I want to force users to insert landscape rather portrait images. > > >> > I don't want to be too pedantic about it but they

Re: [PHP] checking the aspect ratio of an images

2007-06-08 Thread Crayon Shin Chan
On Friday 08 June 2007 22:17, tedd wrote: > >> Wednesday, June 6, 2007, 11:41:19 AM, you wrote: > >> > I want to force users to insert landscape rather portrait images. > >> > I don't want to be too pedantic about it but they do need to have > >> > an > >> > >>approximate 4x3 > >> > >> > aspe

Re: [PHP] checking the aspect ratio of an images

2007-06-08 Thread tedd
At 9:33 AM -0400 6/6/07, Robert Cummings wrote: On Wed, 2007-06-06 at 12:01 +0100, Richard Davey wrote: Hi, Wednesday, June 6, 2007, 11:41:19 AM, you wrote: > I want to force users to insert landscape rather portrait images. I don't > want to be too pedantic about it but they do need to ha

Re: [PHP] checking the aspect ratio of an images

2007-06-06 Thread Crayon Shin Chan
On Wednesday 06 June 2007 21:33, Robert Cummings wrote: > You certainly can be "approximate" when coding. It's called heuristics > and it's an absolute necessity in many areas of software development. But you still have to define _precisely_ how "approximate" you want to be. -- Crayon -- PHP

Re: [PHP] checking the aspect ratio of an images

2007-06-06 Thread Robert Cummings
On Wed, 2007-06-06 at 12:01 +0100, Richard Davey wrote: > Hi, > > Wednesday, June 6, 2007, 11:41:19 AM, you wrote: > > > I want to force users to insert landscape rather portrait images. I don't > > want to be too pedantic about it but they do need to have an approximate 4x3 > > aspect ratio. >

Re: [PHP] checking the aspect ratio of an images

2007-06-06 Thread Robin Vickery
On 06/06/07, blueboy <[EMAIL PROTECTED]> wrote: I want to force users to insert landscape rather portrait images. I don't want to be too pedantic about it but they do need to have an approximate 4x3 aspect ratio. This is my code so far. $max_height = "500"; // This is in pixels $max_width = "50

RE: [PHP] checking the aspect ratio of an images

2007-06-06 Thread Edward Kay
> -Original Message- > From: blueboy [mailto:[EMAIL PROTECTED] > Sent: 06 June 2007 11:41 > To: php-general@lists.php.net > Subject: [PHP] checking the aspect ratio of an images > > > I want to force users to insert landscape rather portrait images. I don't > want to be too pedantic about

Re: [PHP] checking the aspect ratio of an images

2007-06-06 Thread Richard Davey
Hi, Wednesday, June 6, 2007, 11:41:19 AM, you wrote: > I want to force users to insert landscape rather portrait images. I don't > want to be too pedantic about it but they do need to have an approximate 4x3 > aspect ratio. You can't really be 'approximate' when coding. You need to set some hard