NYCPHP Meetup

[nycphp-talk] Resample Image on the Fly

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


On 1/29/07, Dan Cech <dcech at phpwerx.net> 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:

http://r2test3.com/project_detail.php?rec=3

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
www.r2communications.com



More information about the talk mailing list