SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Sep 2000
    Location
    Seattle, WA area
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need to install GD on my Nusphere Win2k install, but I can't find php_gd.dll, which I need to run GD. Could anybody help me locate this file?

    Thanks.

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Again I would suggest against running gd on Windows platforms, I can send you the dll, but in my opinion I would take a look at ImageMagick www.imagemagick.org


    Here is where you can get the gd dll if you so desire
    http://php.weblogs.com/php_gd
    Last edited by freddydoesphp; May 8, 2001 at 15:40.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Zealot
    Join Date
    Sep 2000
    Location
    Seattle, WA area
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Freddy. Imagemagick is downloading now.

    How would I use Imagemagick from PHP?

    I basically want to draw a 500x500px circle and draw straight lines between various points.

    Thanks.

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically you would make system calls to it, you have to nmake sure to include the bin folder in your path environment then its just

    system("the command");


    Check their site for docs
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    SitePoint Zealot
    Join Date
    Sep 2000
    Location
    Seattle, WA area
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So far I have been able to get it to draw a circle using
    Code:
    convert -size 500x500 -pen white -stroke green -draw "Circle +250+250 +1+251" XC:white sample321.gif
    I think the documentation is really confusing for ImageMagick and it doesn't explain that much.

    How would I add a line on top of that circle from a point such as 100,50 to 200,50?

    Also, is there anyway to get ImageMagick to draw lines from the center of the circle to the edge of the circle every ten degrees?

    Thanks alot.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •