ImageMagick Issues

March 11th, 2010

  • Hi, I've been struggling with ImageMagick issues and need some help. BTW, I've been using vBulletin since the 2.x days but it's been about a year and a half since I brought my board back up. 3.6 has been very good to me, solid and I'm amazed at how feature rich it is. I constantly complained to other forum hosts if they are not using vBulletin to do so because it makes the end user experience so much nicer. Anyway, enough smoke.

    I've been able to test ImageMagick locally on the server. The convert command works. The local windows path is c:imagemick (yes I mispelled it during install). I've provided read rights to this directory for inet_usr.

    Under Admin, Options, Image Settings, the path is just like above, ImageMagick 6 is selected but the image for ImageMagick (GD also) is not available.

    I've done a identify -list type and it displays many fonts:

    Path: c:imagemickconfigtype-ghostscript.xml
    Name Family Style Stretch Weight
    --------------------------------------------------------------------------------
    AvantGarde-Book AvantGarde Normal Normal 400
    AvantGarde-BookOblique AvantGarde Oblique Normal 400
    AvantGarde-Demi AvantGarde Normal Normal 600
    AvantGarde-DemiOblique AvantGarde Oblique Normal 600
    Bookman-Demi Bookman Normal Normal 600
    Bookman-DemiItalic Bookman Italic Normal 600
    Bookman-Light Bookman Normal Normal 300
    Bookman-LightItalic Bookman Italic Normal 300
    Courier Courier Normal Normal 400
    Courier-Bold Courier Normal Normal 700
    Courier-BoldOblique Courier Oblique Normal 700
    Courier-Oblique Courier Oblique Normal 400
    fixed Helvetica Normal Normal 400
    Helvetica Helvetica Normal Normal 400
    Helvetica-Bold Helvetica Normal Normal 700
    Helvetica-BoldOblique Helvetica Italic Normal 700
    Helvetica-Narrow Helvetica Narrow Normal Condensed 400
    Helvetica-Narrow-Bold Helvetica Narrow Normal Condensed 700
    Helvetica-Narrow-BoldOblique Helvetica Narrow Oblique Condensed 700
    Helvetica-Narrow-Oblique Helvetica Narrow Oblique Condensed 400
    Helvetica-Oblique Helvetica Italic Normal 400
    NewCenturySchlbk-Bold NewCenturySchlbk Normal Normal 700
    NewCenturySchlbk-BoldItalic NewCenturySchlbk Italic Normal 700
    NewCenturySchlbk-Italic NewCenturySchlbk Italic Normal 400
    NewCenturySchlbk-Roman NewCenturySchlbk Normal Normal 400
    Palatino-Bold Palatino Normal Normal 700
    Palatino-BoldItalic Palatino Italic Normal 700
    Palatino-Italic Palatino Italic Normal 400
    Palatino-Roman Palatino Normal Normal 400
    Times-Bold Times Normal Normal 700
    Times-BoldItalic Times Italic Normal 700
    Times-Italic Times Italic Normal 400
    Times-Roman Times Normal Normal 400
    Path: Windows Fonts
    Name Family Style Stretch Weight
    --------------------------------------------------------------------------------
    Arial Arial Normal Normal 400
    Arial-Black Arial Normal Normal 900
    Arial-Bold Arial Normal Normal 700
    Arial-Bold-Italic Arial Italic Normal 700
    Arial-Italic Arial Italic Normal 400
    Comic-Sans-MS Comic Sans MS Normal Normal 400
    Comic-Sans-MS-Bold Comic Sans MS Normal Normal 700
    Courier-New Courier New Normal Normal 400
    Courier-New-Bold Courier New Normal Normal 700
    Courier-New-Bold-Italic Courier New Italic Normal 700
    Courier-New-Italic Courier New Italic Normal 400
    Estrangelo-Edessa Estrangelo Edessa Normal Normal 400
    Franklin-Gothic-Medium Franklin Gothic Normal Normal 500
    Franklin-Gothic-Medium-Italic Franklin Gothic Italic Normal 500
    Gautami Gautami Normal Normal 400
    Georgia Georgia Normal Normal 400
    Georgia-Bold Georgia Normal Normal 700
    Georgia-Bold-Italic Georgia Italic Normal 700
    Georgia-Italic Georgia Italic Normal 400
    Impact Impact Normal Normal 400
    Latha Latha Normal Normal 400
    Lucida-Console Lucida Console Normal Normal 400
    Lucida-Sans-Unicode Lucida Sans Unicode Normal Normal 400
    Mangal Mangal Normal Normal 400
    Microsoft-Sans-Serif Microsoft Sans Serif Normal Normal 400
    Mv-Boli Mv Boli Normal Normal 400
    Palatino-Linotype Palatino Linotype Normal Normal 400
    Palatino-Linotype-Bold Palatino Linotype Normal Normal 700
    Palatino-Linotype-Bold-Italic Palatino Linotype Italic Normal 700
    Palatino-Linotype-Italic Palatino Linotype Italic Normal 400
    Raavi Raavi Normal Normal 400
    Shruti Shruti Normal Normal 400
    Sylfaen Sylfaen Normal Normal 400
    Symbol Symbol Normal Normal 400
    Tahoma Tahoma Normal Normal 400
    Tahoma-Bold Tahoma Normal Normal 700
    Times-New-Roman Times New Roman Normal Normal 400
    Times-New-Roman-Bold Times New Roman Normal Normal 700
    Times-New-Roman-Bold-Italic Times New Roman Italic Normal 700
    Times-New-Roman-Italic Times New Roman Italic Normal 400
    Trebuchet-MS Trebuchet MS Normal Normal 400
    Trebuchet-MS-Bold Trebuchet MS Normal Normal 700
    Trebuchet-MS-Bold-Italic Trebuchet MS Italic Normal 700
    Trebuchet-MS-Italic Trebuchet MS Italic Normal 400
    Tunga Tunga Normal Normal 400
    Verdana Verdana Normal Normal 400
    Verdana-Bold Verdana Normal Normal 700
    Verdana-Bold-Italic Verdana Italic Normal 700
    Verdana-Italic Verdana Italic Normal 400
    Webdings Webdings Normal Normal 400
    WingDings WingDings Normal Normal 400

    I've also run http://www.mandmsoftware.com/forums/image.php?type=regcheck&imagehash=test&i=im (http://www.mandmsoftware.com/forums/image.php?type=regcheck&imagehash=test&i=im) (note my forum site address) and it gives me a PHP ERROR exec()

    Attached please find the Image Settings screen shot


  • That error means that the php exec() call to imagemagick failed. It could be because exec() usage is disabled in your PHP or it could be a rights issue to the convert binary.


  • Assuming it is a directory rights issue (or a CMD.EXE rights issue) what user account are we looking at? Just to confirm, is it the anonymous account the web site is assigned? For me that's IUSR_machinename


  • I am unsure, windows rights management isn't my area of expertise.


  • I don't know what else to suggest, perhaps the PHP folder as well. There are a lot hits on google when searching for unable to fork php so the solution is not that far out there.

    Agreed, there is a lot of conversation about Unable to Fork. From what I can gather, there was a bug in PHP back in version 4.0.xx but that since has been fixed, and of course there is the give CMD.EXE rights.

    I have GD working so it is isn't urgent, I just have to know what the problem is before I can get a good nights rest :o


  • My guess is that the IM binary files are not executable (generally chmod 755.)

    Moving to Server Configuration forum since this is a server issue.

    What do you mean chmod 755?

    BTW, I turned the PHP GD2 Extension on. It seems to work. Still puzzled why ImageMagick does not.

    Are there any links to comparing GD and Imagemagick?


  • http://www.somacon.com/p255.php

    That might be helpful.

    I know I must be close. Still no luck. Have modified security rights to cmd.exe to include IUSR, have even added rights to the temp directory and the vbulletin regimage, fonts directory.

    Perplexed


  • That error means that the php exec() call to imagemagick failed. It could be because exec() usage is disabled in your PHP or it could be a rights issue to the convert binary.

    Is there a line in the PHP.INI I should verify?


  • 'man' is a standard Unix/Linux command. Which OS are you running?


  • Then chmod is not applicable. However the previous issue remains. My guess is that the IM binary files are not executable. You will need to check and change that. Unfortunately I do not have specific instructions on doing this with Windows.


  • I don't know what else to suggest, perhaps the PHP folder as well. There are a lot hits on google when searching for unable to fork php so the solution is not that far out there.


  • Try this at the command line to explain chmod:

    man chmod

    For all intents and purposes GD with True Type Fonts will be as good as IM.

    That command is not recognized. Is MAN a utility shipped with ImageMagick?


  • My guess is that the IM binary files are not executable (generally chmod 755.)

    Moving to Server Configuration forum since this is a server issue.


  • A kind bump.

    Forgive me, I forget the policy on bumping it is just strange for 2 days to go by without a response.


  • 'man' is a standard Unix/Linux command. Which OS are you running?

    Windows OS


  • http://www.vbulletin.com/forum/showthread.php?t=163751&highlight=unable+to+fork


  • http://www.somacon.com/p255.php

    That might be helpful.


  • Make sure safe_mode is disabled, make sure exec() isn't listed under disable_functions

    If you set track_errors to On you might get a more descriptive error message.

    Restart iis/apache after making any changes.

    PHP ERROR Unable to fork [convert.exe -size 201x61 xc:white -font "C:InetpubwwwrootM and M SoftwareForumsupload/images/regimage/fonts/edmunds.ttf" -pointsize 32 -fill "rgb(0,0,0)" -annotate 0x0+10+40 "vBulletin" -flatten -stroke black -strokewidth 1 -fill none -draw "rectangle 0,60 200,0" -depth 8 PNG:"C:WINDOWSTEMPvb343.tmp" 2>&1]


  • I can run convert and Identify. Those exes are working.


  • Make sure safe_mode is disabled, make sure exec() isn't listed under disable_functions

    If you set track_errors to On you might get a more descriptive error message.

    Restart iis/apache after making any changes.


  • Try this at the command line to explain chmod:

    man chmod

    For all intents and purposes GD with True Type Fonts will be as good as IM.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about ImageMagick Issues , Please add it free.