Php Image handling

This is a discussion on "Php Image handling" within the PHP Forum section. This forum, and the thread "Php Image handling are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 23rd, 2007, 08:56
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Feb 23rd, 2007, 09:04
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Php Image handling

Yep. It's quite often installed on servers already, though.
Reply With Quote
  #3 (permalink)  
Old Feb 23rd, 2007, 10:02
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Php Image handling

ok, id better get it installed on my local machine for testing then ......... hope its not too long winded.
Reply With Quote
  #4 (permalink)  
Old Feb 23rd, 2007, 19:45
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Php Image handling

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

Which is kinda neat
Reply With Quote
  #5 (permalink)  
Old Feb 26th, 2007, 17:30
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6 (permalink)  
Old Feb 26th, 2007, 21:38
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
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.
Reply With Quote
  #7 (permalink)  
Old Feb 26th, 2007, 22:20
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8 (permalink)  
Old Feb 27th, 2007, 00:07
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Php Image handling

Don't sue the functions!
Reply With Quote
  #9 (permalink)  
Old Feb 27th, 2007, 13:49
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #10 (permalink)  
Old Feb 27th, 2007, 14:05
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
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/
Reply With Quote
  #11 (permalink)  
Old Feb 27th, 2007, 23:06
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply

Tags
php

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 Forum 1 Mar 13th, 2008 21:03
handling xml errors grobar Other Programming Languages 0 Sep 4th, 2006 16:36
Character Encoding Handling spinal007 Classic ASP 0 Jun 13th, 2006 11:21
Form handling Tim356 PHP Forum 2 Feb 28th, 2005 23:55
Form handling Process in ASP? sazhagianambi Classic ASP 4 May 27th, 2004 12:59


All times are GMT. The time now is 18:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43