Re: [PHP] Auto Thumbnail?
All you need is the nifty little program called convert - I have a frontend class called convert.php at my website. Check out http://www.miester.org in the code section. BTW, this bypasses the need for compiling gd into your php compile. Also, you'll want to make sure you have convert on your system (sometimes isn't installed). It's part of the Image Magik utility pack. --Joe On Fri, Nov 16, 2001 at 11:16:57PM +, cosmin laslau wrote: I've got a website which will alllow users to upload photos (jpegs) and, once approved, they'll be up for display. To do that, I need an auto-thumbnail script, preferrably for on-the-fly thumb generation. Any ideas? Also, what kind of libraries would I need. Thanks. The site is http://www.flat-6.net/f6 _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Joe Stump [EMAIL PROTECTED] How would this sentence be different if pi equaled 3? msg40406/pgp0.pgp Description: PGP signature
Re: [PHP] Auto Thumbnail?
well, if you are on a *nix based system, you could use ImageMagic. and have it generate the thumbnails for you. as for a script, well, you would have to write that. Jim - Original Message - From: cosmin laslau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 16, 2001 3:16 PM Subject: [PHP] Auto Thumbnail? I've got a website which will alllow users to upload photos (jpegs) and, once approved, they'll be up for display. To do that, I need an auto-thumbnail script, preferrably for on-the-fly thumb generation. Any ideas? Also, what kind of libraries would I need. Thanks. The site is http://www.flat-6.net/f6 _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Auto Thumbnail?
Hi Cosmin, @ 6:16:57 PM on 11/16/2001, cosmin laslau wrote: I've got a website which will alllow users to upload photos (jpegs) and, once approved, they'll be up for display. To do that, I need an auto-thumbnail script, preferrably for on-the-fly thumb generation. Any ideas? Also, what kind of libraries would I need. You could use gd support that *could* be built into your PHP, alternatively you could use NetPBM (easier to get working). google.com for those.. -- -Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Auto Thumbnail?
Hi Cosmin, @ 7:30:04 PM on 11/16/2001, cosmin laslau wrote: Thanks for the replies. I'm guessing this is the GD library that I would need... http://www.boutell.com/gd/ That would be the one.. Now to find out if it's built into my PHP or not. Anyone know how to 'test' for it? Sure, stick ?php phpinfo(); ? into a .php file and load it into your browser. It should have a section labeled gd if it's enabled. Also check out the configure line at the top if it's present. It should say somewhere in that line --with-gd=[...] It's a UNIX, but it's not my server (a friend's), so I only have remote access to it (it's located, oh, about 2000 miles away :). Anyway, if it was NOT installed, how easy/hard would it be to set it up? Depends.. if your friend set up PHP, he'll need to rebuild PHP with gd support. It can be tricky sometimes, which is why I suggested NetPBM, which doesn't require you to rebuild PHP, but will undoubtedly need safe_mode=Off because you'll need to process the images with exec() or http://www.php.net/backticks. -- -Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Auto Thumbnail?
Hi Cosmin, @ 8:05:05 PM on 11/16/2001, cosmin laslau wrote: Hmm, seem to have run into something rather strange. First off, I ran the phpinfo command, and, lo and behold... http://www.flat-6.net/f6/analyze.php I'd delete that when you're done (or just rename it to a totally random (Ie. 1s8s7fgf0g7g987ga91a98.php) file name and bookmark it). It would seem that GD is there, there's a line --with-gd=shared' ' His gd support is broken I think; he needs to point ./configure to the right place for gd, more than likely. Notice there's no section for 'gd' -- like there is for mysql, zlib, etc. He also might need --with-png-dir=[dir] and --with-jpeg-dir=[dir] % ./configure --help | egrep -i '(jpeg|png)' --with-jpeg-dir=DIR jpeg dir for cpdflib 2.x --with-jpeg-dir=DIR GD: Set the path to libjpeg install prefix. --with-png-dir=DIRGD: Set the path to libpng install prefix. --with-jpeg-dir=DIR PDFLIB3: define libjpeg install directory --with-png-dir=DIR PDFLIB3: define libpng install directory -- -Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]