Re: [PHP] Making thumbs same size

2007-06-05 Thread Richard Lynch
On Mon, June 4, 2007 1:44 am, Humani Power wrote: > Hey hi!!. > //get dimensions of the thumbnail > > $thumb_width=$width*0.10; > $thumb_height=$height*.10; It's really up to YOU to choose the thumbnail constant size and to decide what to do about the aspect ratio You could crop or fill with black

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 10:59 -0400, tedd wrote: > > http://www.webbytedd.com/b/thumb/index.php I think you're cheating BTW... no matter what I put in for $_GET['s'], I always get your doggy, and I don't see your script testing for *cough* inappropriate access attempts ;) Cheers, Rob. -- .

Re: [PHP] Making thumbs same size

2007-06-05 Thread tedd
> Also, in my readings, I have read several books that say keeping any sort of error reporting code in your public script is not a good idea. In other words, don't give possible evil-doers any information. So, I should remove the error reporting statements as well. Yeah... I thought maybe

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 16:29 +0200, Zoltán Németh wrote: > > I agree with the above idea. Errors should be logged (and possibly sent > in notification mail to the developer or something like that), not > displayed to the outside world, as they can expose sensitive information > about your setup. It

Re: [PHP] Making thumbs same size

2007-06-05 Thread Zoltán Németh
2007. 06. 5, kedd keltezéssel 10.17-kor tedd ezt írta: > At 3:33 PM +0200 6/5/07, Zoltán Németh wrote: > >2007. 06. 5, kedd keltezéssel 09.17-kor tedd ezt írta: > >> At 9:56 AM -0400 6/4/07, Robert Cummings wrote: > >> >On Mon, 2007-06-04 at 09:50 -0400, tedd wrote: > >> >> > >> >> Don't scale

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 10:17 -0400, tedd wrote: > At 3:33 PM +0200 6/5/07, Zoltán Németh wrote: > >2007. 06. 5, kedd keltezéssel 09.17-kor tedd ezt írta: > >> At 9:56 AM -0400 6/4/07, Robert Cummings wrote: > >> >On Mon, 2007-06-04 at 09:50 -0400, tedd wrote: > >> >> > >> >> Don't scale, resamp

Re: [PHP] Making thumbs same size

2007-06-05 Thread tedd
At 3:33 PM +0200 6/5/07, Zoltán Németh wrote: 2007. 06. 5, kedd keltezéssel 09.17-kor tedd ezt írta: At 9:56 AM -0400 6/4/07, Robert Cummings wrote: >On Mon, 2007-06-04 at 09:50 -0400, tedd wrote: >> >> Don't scale, resample. See here: >> > >> http://www.webbytedd.com/b/thumb/index.php

Re: [PHP] Making thumbs same size

2007-06-05 Thread Zoltán Németh
2007. 06. 5, kedd keltezéssel 09.17-kor tedd ezt írta: > At 9:56 AM -0400 6/4/07, Robert Cummings wrote: > >On Mon, 2007-06-04 at 09:50 -0400, tedd wrote: > >> > >> Don't scale, resample. See here: > >> > >> http://www.webbytedd.com/b/thumb/index.php > > > >Hi Tedd, > > > >In your script you have

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 09:17 -0400, tedd wrote: > At 9:56 AM -0400 6/4/07, Robert Cummings wrote: > > I didn't do that. No one saw me do it and can't prove it. Besides, I > changed the code. :-) > > My explanation, legacy remnants. I can relate. I've worked on code, changed my mind, ripped out 8

Re: [PHP] Making thumbs same size

2007-06-05 Thread tedd
At 9:56 AM -0400 6/4/07, Robert Cummings wrote: On Mon, 2007-06-04 at 09:50 -0400, tedd wrote: Don't scale, resample. See here: http://www.webbytedd.com/b/thumb/index.php Hi Tedd, In your script you have: ini_set( 'register_globals', '0' ); The line is pointless, it can't be reached

Re: [PHP] Making thumbs same size

2007-06-04 Thread Robert Cummings
On Mon, 2007-06-04 at 09:50 -0400, tedd wrote: > > Don't scale, resample. See here: > > http://www.webbytedd.com/b/thumb/index.php Hi Tedd, In your script you have: ini_set( 'register_globals', '0' ); The line is pointless, it can't be reached until after such globals have been registered.

Re: [PHP] Making thumbs same size

2007-06-04 Thread tedd
At 1:44 AM -0500 6/4/07, Humani Power wrote: Hey hi!!. I have a few pages that uploads images to the apache server and makes a registry on a mysql database. Everything is going well just for a few details. When I make the upload for an image, it creates me a thumb image, but not as I want. For

Re: [PHP] Making thumbs same size

2007-06-04 Thread Stut
Humani Power wrote: Hey hi!!. I have a few pages that uploads images to the apache server and makes a registry on a mysql database. Everything is going well just for a few details. When I make the upload for an image, it creates me a thumb image, but not as I want. For example, if I have an i

Re: [PHP] Making thumbs same size

2007-06-04 Thread Christian Haensel
:o) I will try my best then ... hopefully you just needed the calculation part :oP Cheerio mate Chris - Original Message - From: "Humani Power" <[EMAIL PROTECTED]> To: Sent: Monday, June 04, 2007 8:44 AM Subject: [PHP] Making thumbs same size Hey hi!!. I have a few pages

[PHP] Making thumbs same size

2007-06-03 Thread Humani Power
Hey hi!!. I have a few pages that uploads images to the apache server and makes a registry on a mysql database. Everything is going well just for a few details. When I make the upload for an image, it creates me a thumb image, but not as I want. For example, if I have an image that its of 2000 x