Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (19 June 2013 - 02:28 PM) Long Life To Asta New Era
@  agyat : (19 June 2013 - 01:58 PM) New Era Start At Asta Or Asta Start In New Era. :unsure:
@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?

Replying to Basic Tutorial: PHP GD


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Posted 06 January 2010 - 03:29 PM

Thanks.Basic Tutorial: PHP GD

This was very helpful for me in getting started with GD. I was wondering how to display a jpeg without having to save it as a jpeg file and this showed me. Also very simple examples of using the shape functions and how they relate to the "canvas". I can build on this in my applications. Thanks for taking the time to post this tutorial.

-reply by Steve


ml01172

Posted 08 October 2008 - 03:28 PM

What is actually the path for GD graphics library? I need it for my coppermine galery.

I would like to upload it manually because I'm using my own database...but I don't know the path for the GD. I have a backup of the mysql database I already used on a different server. It works fine, but just the thumbnails are not displayed.

Maybe somebody knows how to install/use GD for a coppermine picture galery? Thanks in advance for your help.


GD library isn't related to any of the user-libraries and scripts, like coppermine gallery etc., but strictly to PHP. You have to install or upgrade your PHP at the server so it contains GD.

Try doing this, for an example. Download PHP source from PHP.NET (try getting the version you already have installed) and, if you're on Linux, do the following:
1. Unpack the PHP package you got
2. Change directory into the created PHP directory.
3. Type:
./configure --with-gd
4. If configuration successfull, type:
make (not "make install", and not necessarily as root)

Once compilation process is over, look into the "modules" directory. A library with .so extension should be there so just copy it into your local "modules" directory for PHP (usually /usr/lib/php/modules or similar). Restart your web server.

Cheers

Posted 19 August 2008 - 11:28 AM

How to call the image into other PHP page?
Basic Tutorial: PHP GD

Ok, I've done create a chart using GD.. And then I want to call that chart into my php page let say data.Php.. Then how to do that? I've tried using include function and even < img > tag but it just not work..

-question by ableze_joepardy

vladimir

Posted 28 December 2004 - 02:29 AM

What is actually the path for GD graphics library? I need it for my coppermine galery.

I would like to upload it manually because I'm using my own database...but I don't know the path for the GD. I have a backup of the mysql database I already used on a different server. It works fine, but just the thumbnails are not displayed.

Maybe somebody knows how to install/use GD for a coppermine picture galery? Thanks in advance for your help.

thedevil

Posted 21 November 2004 - 08:55 AM

ok, a short sum up on some of the question.
saving as a jpeg: he tried but forgot the filename :P
imagejpeg ( $img, test.jpg , 78);
that'll do the trick
2. gd is installed on astahost. no problem. you can use it as you wish
3. installing gd on your own pc.
i guess you are using a windows machine as you mentioned dll. well, you have the dll, it's packed with php. what you need to do is find the lines that say which extensions to use.
unquote the extension that says gd.dll or gd2.dll
(you can do this by removing the ; in front of the line)
restart your iis or apache server.
done!

<{POST_SNAPBACK}>

Thanks I will Try that...

r3d

Posted 19 November 2004 - 07:05 PM

php 4.9+ use gd2 which is bundled in the installation by default. but not enable by default. read marijnn's post and put the gd2.dll in windows folder also some dll is required like icon.dll you should put this dll in window folder too :P

marijnnn

Posted 19 November 2004 - 10:42 AM

ok, a short sum up on some of the question.
saving as a jpeg: he tried but forgot the filename :P
imagejpeg ( $img, test.jpg , 78);
that'll do the trick
2. gd is installed on astahost. no problem. you can use it as you wish
3. installing gd on your own pc.
i guess you are using a windows machine as you mentioned dll. well, you have the dll, it's packed with php. what you need to do is find the lines that say which extensions to use.
unquote the extension that says gd.dll or gd2.dll
(you can do this by removing the ; in front of the line)
restart your iis or apache server.
done!

thedevil

Posted 18 November 2004 - 03:47 AM

good tutorial but see I have a problem using GD. Coz I dont have the GD library. I visited the www.boutell.com and downloaded the GD Library but couldnot compile it for PHP. And they dont provide a DLL for PHP now...
Where Can I get the GD library? Refer me good sites for the same.

r3d

Posted 28 October 2004 - 07:33 PM

please don't double post, use the edit button :)

about the gd it's allready installed. and about your first question no, it must be save as php or it will not be parse, just a suggestion u can do something like this image.php?id=image_name with the gd :)

avalon

Posted 28 October 2004 - 07:20 PM

outch  :)
astahost hosting has no gd support for the moment, may be... this is part of the problem . and the tutorial won't work at this time. plz be patient while the admin is fixing this :)

<{POST_SNAPBACK}>


Can we request for it to be installed.
gd and magick is fabulous for auto image generation.
Freetype is oftenly required too, you will be happy to find out what it can do.

Review the complete topic (launches new window)