[nycphp-talk] Resample Image on the Fly

Randal Rust randalrust at
Mon Jan 29 09:52:28 EST 2007

On 1/29/07, Dan Cech <dcech at> wrote:

> I'm not entirely sure what you're asking...can you give us a general
> idea of what you're trying to achieve?

Sure. Take a look here:

What I have done is used getimagesize(0 to get the original width and
height of the image. Then I modify those values proportionally with a
script I wrote and do this:

<img src="'.$url.'" width="'.$newW.'" height="'.$newH.'" />

The issue is that the images don't look as clear as I'd like them to
after resizing. I think they just need to be resampled.

Randal Rust
R.Squared Communications

More information about the talk mailing list