Re: checking the aspect ratio of an images

From: Date: Fri, 08 Jun 2007 17:08:30 +0000
Subject: Re: checking the aspect ratio of an images
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-256372@lists.php.net to get a copy of this message
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 really be 'approximate' when coding. > > > >You certainly can be "approximate" when coding. It's called heuristics > >and it's an absolute necessity in many areas of software development. > Absolutely, and what about fuzzy logic -- that method is based upon > "approximate" calculations. But somewhere in the guts of the approximate calculations there are _precisely_ defined limits. Anyhow, please illustrate how you would use approximate calculations in determining or defining the aspect ratio of an image. -- Crayon

« previous php.general (#256372) next »