|
|
 |
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
|
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.
|
|
|
February 23rd, 2007, 05:04 AM
|
#2
|
|
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: Php Image handling
Yep. It's quite often installed on servers already, though.
|
|
|
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
|
Re: Php Image handling
ok, id better get it installed on my local machine for testing then ......... hope its not too long winded.
|
|
|
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
|
Re: Php Image handling
Just so everybody knows... apparently, the GD library comes as standard with php 4.0 +
Which is kinda neat 
|
|
|
February 26th, 2007, 01:30 PM
|
#5
|
|
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 649
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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.
|
|
|
February 26th, 2007, 05:38 PM
|
#6
|
|
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
|
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.
|
|
|
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
|
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
|
|
|
February 26th, 2007, 08:07 PM
|
#8
|
|
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: Php Image handling
Don't sue the functions!
|
|
|
February 27th, 2007, 09:49 AM
|
#9
|
|
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 649
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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 
|
|
|
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
|
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/
|
|
|
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
|
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
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|