• Resolved dralph01

    (@dralph01)


    Hi, I am unable to generate the PDF Images. Im on a windows machine and I was thinking that the issue is with the path with the “\” vs a “/”.

    This is the error I get:

    ERROR (DG_GhostscriptThumber->getThumbnail) Ghostscript failed: 1
    DETAIL (DG_GhostscriptThumber->getThumbnail) Executing: “C:\ ProgramFiles \gs\gs9.20\bin\gswin64c.exe” -sDEVICE=png16m -dFirstPage=1 -dLastPage=1 -dBATCH -dNOPAUSE -dPDFFitPage -sOutputFile=”C:\Windows\TEMP\9c00eeca86d6eb183d694552fc2b40ce.png” “C:\inetpub\www-Carpenterberger\html/wp-content/uploads/2016/12/Cleaner-Times-Law-Advisor-May-2014-Terminating-At-Will-Employees.pdf” 2>&1

    My config info in below:

    Array
    (
    [thumber] => Array
    (
    [gs] => C:\%ProgramFiles%\gs\gs9.20\bin\gswin64c.exe
    [active] => Array
    (
    [av] => 1
    [gs] => 1
    [imagick] =>
    [thumber-co] =>
    )

    [width] => 100
    [height] => 100
    )

    [thumber-co] => Array
    (
    [uid] =>
    [secret] =>
    [subscription] => Array
    (
    )

    [direct_upload] =>
    [mime_types] => Array
    (
    )

    )

    [gallery] => Array
    (
    [columns] => 4
    [fancy] => 1
    [order] => ASC
    [orderby] => menu_order
    [relation] => AND
    [limit] => -1
    [mime_types] => application,video,text,audio,image
    [new_window] => 1
    [paginate] => 1
    [post_status] => any
    [post_type] => attachment
    [attachment_pg] =>
    [descriptions] =>
    [skip] => 0
    )

    [css] => Array
    (
    [text] =>
    )

    [meta] => Array
    (
    [version] => 4.3.1
    [items_per_page] => 10
    [donate_link] => https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
    )

    [logging] => Array
    (
    [enabled] => 1
    [purge_interval] => 7
    )

    )

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    Hi dralph01,

    I just tried converting a PDF on my windows box with the 64-bit Ghostscript 9.20 and things seem to be working OK on my side.

    I do notice that is a very non-standard path where Ghostscript is configured to be located. Can you confirm that there is actually something at “C:\ ProgramFiles \gs\gs9.20\bin\gswin64c.exe”? The %ProgramFiles% environment variable is being expanded out to have a space before and after.

    -Dan

    Thread Starter dralph01

    (@dralph01)

    Dan,

    I was able to solve this issue. The pathing needed an adjustment but the real issue was that GD was not configured to run under PHP. I went into the PHP.ini file and uncommented the GD line and that solved the problem.

    Plugin Author Dan Rossiter

    (@danrossiter)

    I’m glad to hear you got it working!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not Generating PDF Thumbnails’ is closed to new replies.