Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Rob Marscher
Randal Rust wrote: But, if that's the best way to do it, then that is probably what I should do. Yeah... I think that GD's imagecopyresampled is the way to go. You could create a thumbnail subdirectory and put the thumbnails in there with the sample filename as the original to make them easy t

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Randal Rust
On 1/29/07, Rob Marscher <[EMAIL PROTECTED]> wrote: Why do you want to avoid storing the thumbnails on the disk? I would just rather deal with one copy of the image if possible. Resampling the image usually involves uncompressing it into an image resource which can be pretty memory intensive

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Rob Marscher
Why do you want to avoid storing the thumbnails on the disk? Resampling the image usually involves uncompressing it into an image resource which can be pretty memory intensive if you have to do it for multiple images on every page request. -Rob Randal Rust wrote: On 1/29/07, Ken Robinson <[

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Urb LeJeune
If anyone is looking for this type of role in NYC please get in touch Regards Matt Doesn't sound like resample Image on the Fly to me :-) Urb ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPC

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread MJD MJD
If anyone is looking for this type of role in NYC please get in touch Regards Matt *Job description:* Our client, an online publisher of financial publications, has an immediate permanent opening for a PHP Expert. Ideal candidates should meet the following requirements: Required skills and exper

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Urb LeJeune
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: There is a downside to this technique. If you are display the image smaller than the original the full sized image i

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Randal Rust
On 1/29/07, Dan Cech <[EMAIL PROTECTED]> wrote: The trick is to write a php script which accepts an image name as a parameter, loads the image into GD and outputs the resampled version directly to the browser. Yeah, that's what I was looking for. Thanks for the script. I'll see what I can come

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Randal Rust
On 1/29/07, Ken Robinson <[EMAIL PROTECTED]> wrote: If that is not the case, there are image resampling functions in the GD package. Take a look at the imagecopyresampled() function . That is what I was hoping to avoid. -- Randal Rust R.Squared Communica

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Dan Cech
Randal Rust wrote: > On 1/29/07, Dan Cech <[EMAIL PROTECTED]> 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 getim

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Ken Robinson
At 08:21 AM 1/29/2007, Randal Rust wrote: I need to find out if I can resample an image and also resample it using the GD Library. I don't seem to find anything that does it without creating and storing a thumbnail from the original image. Right now, I get an image and use getimagesize() to crea

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Donald J. Organ IV
Using the img tag does not resize the image, it just forces it to display at the specified width and height. You may want to look into imagemagick or the GD library for something like this. Randal Rust wrote: On 1/29/07, Dan Cech <[EMAIL PROTECTED]> wrote: I'm not entirely sure what you're

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Kenneth Downs
Randal Rust wrote: On 1/29/07, Dan Cech <[EMAIL PROTECTED]> 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 If you are on a *nix machine, take a look at th

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Randal Rust
On 1/29/07, Dan Cech <[EMAIL PROTECTED]> 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 an

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Dan Cech
Randal Rust wrote: > I need to find out if I can resample an image and also resample it > using the GD Library. I don't seem to find anything that does it > without creating and storing a thumbnail from the original image. > > Right now, I get an image and use getimagesize() to create new values >

[nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Randal Rust
I need to find out if I can resample an image and also resample it using the GD Library. I don't seem to find anything that does it without creating and storing a thumbnail from the original image. Right now, I get an image and use getimagesize() to create new values for the height and width attr