Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: GD library

  1. #1
    IanOBrien is offline Nearly a Glow Sage
    Join Date
    Apr 2007
    Posts
    16

    Default GD library

    hey, where's the GD library installed to? right now my mediawiki points to /usr/bin/convert but it isn't resizing my photos.

  2. #2
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    http://us2.php.net/gd
    The gd library is compiled into php.

    convert is an imagemajick CLI program
    If you have no other option and cannot use the GD library built into PHP, you need to contact support@glowhost.com about enabling the insecure 'exec' command.

  3. #3
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,266

    Default

    Quote Originally Posted by jmarcv View Post
    http://us2.php.net/gd
    If you have no other option and cannot use the GD library built into PHP, you need to contact support@glowhost.com about enabling the insecure 'exec' command.
    Use the helpdesk to submit trouble tickets / support issues. support@glowhost.com is no longer used...
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | GlowHost's Facebook | Follow us on Twitter | GlowHost on Google+

  4. #4
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    ... ooops....

  5. #5
    andychev's Avatar
    andychev is offline Master Glow Jedi
    Join Date
    Apr 2005
    Location
    Chester, UK
    Posts
    150

    Default

    I dont fully understand the problem so ignore this if it isnt relevent!

    But..

    An oscommerce install i have auto thumbnails all of my images and if i want i can set a parameter to convert gifs to jpegs on all my images. I dont fully understand how this is done as i didnt write this particular script. However having a quick look through the php files it makes reference to 'GD Library' all over the place so i guess it is using it!?

    That being said i dont have any special access on that account and it all works without a hitch, Magic!

    Sorry i couldnt be more helpful than that!

  6. #6
    IanOBrien is offline Nearly a Glow Sage
    Join Date
    Apr 2007
    Posts
    16

    Default

    It's a little different than that, I think. My MediaWiki is just asking for the location of GD, and when it can't find it, it returns this error:

    Code:
    Error creating thumbnail: /usr/bin/convert: Unrecognized option (-thumbnail).
    In my config file it asks the location of GD, which filled out by deault is /usr/bin/convert. Is there another place where the library could be located, or is there a way that I should notate the directory differently?

  7. #7
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,266

    Default

    Well as John Marc said convert is part of ImageMagick so if your config file says to use GD and it returns and ImageMagick error it sounds like a bug in the script to me.

    I'd check with mediawiki on that part.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | GlowHost's Facebook | Follow us on Twitter | GlowHost on Google+

  8. #8
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,266

    Default

    This is what I have in one of my mediawiki LocalSettings.php files and it thumbnails fine:

    ## To enable image uploads, make sure the 'images' directory
    ## is writable, then set this to true:
    $wgEnableUploads = false;
    $wgUseImageResize = true;
    $wgUseImageMagick = true;
    $wgImageMagickConvertCommand = "/usr/local/bin/convert";

    but you might try
    $wgImageMagickConvertCommand = "/usr/bin/convert";
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | GlowHost's Facebook | Follow us on Twitter | GlowHost on Google+

  9. #9
    andychev's Avatar
    andychev is offline Master Glow Jedi
    Join Date
    Apr 2005
    Location
    Chester, UK
    Posts
    150

    Default

    Assuming imagemagick is installed on the server this error looks like a nightmare! Just doing a quick search on google brings up pages and pages devoted to this error and everyone seems to have a different solution to solve it!

  10. #10
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    What server are you on? I think the problem is that -thumbnail may not be supported on the cPanel version of imagemagick. I think if you replace it with -geometry it should work
    Last edited by jmarcv; 04-15-2007 at 03:18 PM. Reason: grammar

Page 1 of 2 12 LastLast

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16