Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old February 23rd, 2007, 04:56 AM   #1
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
Php Image handling

In oreder to manipulate images with php..... am i right in thinking that i need to install the GD library?

All i want to do is create thumbnails on the fly and also maybe add a watermark.
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 23rd, 2007, 05:04 AM   #2
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: Php Image handling

Yep. It's quite often installed on servers already, though.
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 23rd, 2007, 06:02 AM   #3
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
Re: Php Image handling

ok, id better get it installed on my local machine for testing then ......... hope its not too long winded.
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 23rd, 2007, 03:45 PM   #4
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
Re: Php Image handling

Just so everybody knows... apparently, the GD library comes as standard with php 4.0 +

Which is kinda neat
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 26th, 2007, 01:30 PM   #5
Highly Reputable Member
 
masonbarge's Avatar
 

Join Date: Jan 2006
Location: Atlanta GA
Posts: 649
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masonbarge will become famous soon enough
Re: Php Image handling

You can actually create a "thumbnail" without the gd library by using the browser's resize capability. It wouldn't be as nice probably but it's awfully easy and they really don't look that bad, depending on the amount of the reduction. Expanding a graphic with the browser is terrible, but shrinking isn't bad at all in many cases.

You could even create the appearance of a watermark, but for a real watermark my guess is that you'd have to use gd.
masonbarge is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 26th, 2007, 05:38 PM   #6
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: Php Image handling

Yeah, but using full size images as thumbnails is really bad because, depending on the image size, it can take forever to load a page. Even on high speed connections.
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 26th, 2007, 06:20 PM   #7
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
Re: Php Image handling

thats precisly why im going to use the gd libray ryan m8..... besides i spent most of today teaching myself how to sue all the different functions..

hopefully ill ahve something working tomorrow moring
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 26th, 2007, 08:07 PM   #8
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: Php Image handling

Don't sue the functions!
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 27th, 2007, 09:49 AM   #9
Highly Reputable Member
 
masonbarge's Avatar
 

Join Date: Jan 2006
Location: Atlanta GA
Posts: 649
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masonbarge will become famous soon enough
Re: Php Image handling

D'oh, didn't even stop to think that the browser would have to download the entire file. No wonder Hot Farmgirls of Uzbekistan takes so long to load
masonbarge is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 27th, 2007, 10:05 AM   #10
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
Re: Php Image handling

I use ImageMagick. I heard it was more powerful than GD but who knows. I never tried GD.

Here's the script I use to create my thumbnails tho - Dynamic Thumbnailing with Imagemagick in PHP

And here's a site with ALOT of neat little things you can do with IM - http://www.imagemagick.org/Usage/
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 27th, 2007, 07:06 PM   #11
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
Re: Php Image handling

i'll look into that in the morning kari, thanks

howeevr i have a script that works uising gd atm .... its a simple resize this uploaded image to X size script.... need to figure a few more things out tioll im happy though
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
php


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling cookies in JavaScript. globalguideline JavaScript 1 March 13th, 2008 06:03 PM
handling xml errors grobar Other Languages 0 September 4th, 2006 12:36 PM
Character Encoding Handling spinal007 Classic ASP 0 June 13th, 2006 07:21 AM
Form handling Tim356 PHP 2 February 28th, 2005 07:55 PM
Form handling Process in ASP? sazhagianambi Classic ASP 4 May 27th, 2004 08:59 AM


Search Engine Optimization by vBSEO 3.2.0 RC8