Thanks for the suggestion. Now it is working. But
before that, one needs to also enable the register
gd2.dll or something.
--- Tapan Shah <tapsboy@...
> Dear Vijay,
> Try GD Graphics. It will mostly help with functions
> like getWidth(),
> On Nov 21, 2007 2:27 PM, Vijay Srinivas
> <vijay_srini_2000@...> wrote:
> > Dear All,
> > Hi!!! and hope all of you are enjoying the PHP
> coding, as am I.
> > Well, we know how to extract images, and also how
> to adjust the size.
> > It is like this:
> > <img src="sampleimage.jpg" width="100"
> > Now, how do we extract the aspect ratio. i.e. if
> an image is big, how
> > to show it in a small place without distorting it.
> (The above code
> > could distort the image.
> > Alternatively, could anybody tell me is there any
> PHP command to find
> > out the width and the height of the original
> image. (Then we can
> > calculate the aspect ratio.).
> > Bye for now.
> > Vijay Srinivas
> Tapan Shah
> [Non-text portions of this message have been
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.