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

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

2007-06-08 Thread Richard Davey
Hi Crayon, Friday, June 8, 2007, 6:08:30 PM, you 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 do need to have

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 aspect ratio. You can't

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 do need to have

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

2007-06-08 Thread Richard Davey
Hi Robert, Friday, June 8, 2007, 7:21:39 PM, you wrote: Precisely defined limits are not the same as precisely defined values. I might precisely define the amount of entropy on a random value as being some formula based on the current temperature of my CPU. The formula is quite precise, but

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

2007-06-08 Thread Robert Cummings
On Fri, 2007-06-08 at 19:35 +0100, Richard Davey wrote: Hi Robert, Friday, June 8, 2007, 7:21:39 PM, you wrote: Precisely defined limits are not the same as precisely defined values. I might precisely define the amount of entropy on a random value as being some formula based on the

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

2007-06-08 Thread Richard Davey
Hi Robert, Friday, June 8, 2007, 7:47:17 PM, you wrote: On Fri, 2007-06-08 at 19:35 +0100, Richard Davey wrote: Hi Robert, Friday, June 8, 2007, 7:21:39 PM, you wrote: Precisely defined limits are not the same as precisely defined values. I might precisely define the amount of entropy

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 that

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 confine it

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

2007-06-08 Thread Robert Cummings
On Fri, 2007-06-08 at 21:36 +0100, Richard Davey wrote: Hi Robert, Friday, June 8, 2007, 7:47:17 PM, you wrote: On Fri, 2007-06-08 at 19:35 +0100, Richard Davey wrote: Hi Robert, Friday, June 8, 2007, 7:21:39 PM, you wrote: Precisely defined limits are not the same as

[PHP] checking the aspect ratio of an images

2007-06-06 Thread blueboy
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 = 500; // This is in pixels list($width, $height,

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

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 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 = 500;

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. You can't

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