• Resolved Felurian

    (@felurian)


    Hi everyone,

    thank you for this wonderful plugin ! I have a wordpress project on my localhost with wampserver 2.5 (windows 7 x64).
    I installed your plugin and it works except thumbnails generation because, in general settings, ghostscript and imagick are desactivated.

    I downloaded .exe files of ghostscript and imagick and I installed them on my computer (C:\gs\gs9.16 and C:\im\ImageMagick-6.9.1-Q16).

    Then, I put the .dll files into :
    C:\wamp\bin\php\php5.5.12\ext

    And then, I edited php.ini with these two lines :
    extension=php_ghostscript.dll
    extension=php_imagick.dll

    I restarted all services. These two extensions are checked when I go to the PHP extensions list.

    I don’t know what to write in the Ghostscript absolute path field (advanced parameters of Document Gallery).
    When I write C:\gs\gs9.16
    I have this error : ‘”C:\gs\gs9.16″‘ is not recognized as an internal or external command, operable program or batch file.

    Can you explain me how to do to make it works ?
    Thanks !

    Debug :

    Array (
        [thumber] => Array (
                [thumbs] => Array (
                        [295] => Array (
                                [timestamp] => 1433921083
                            )
                        [296] => Array (
                                [timestamp] => 1433921083
                            )
                        [297] => Array (
                                [timestamp] => 1433921083
                            )
                        [298] => Array (
                                [timestamp] => 1433921084
                            )
                        [299] => Array (
                                [timestamp] => 1433921084
                            )
                        [304] => Array (
                                [timestamp] => 1433921084
                            )
                        [305] => Array (
                                [timestamp] => 1433921084
                            )
                    )
    
                [gs] => C:\gs\gs9.16
                [active] => Array (
                        [av] => 1
                        [gs] => 1
                        [imagick] =>
                    )
                [width] => 200
                [height] => 200
                [timeout] => 30
            )
    
        [gallery] => Array (
                [columns] => 4
                [descriptions] => 1
                [fancy] => 1
                [order] => ASC
                [orderby] => date
                [relation] => AND
                [limit] => -1
                [mime_types] => application,video,text,audio,image
                [post_status] => any
                [post_type] => attachment
                [attachment_pg] =>
                [new_window] =>
            )
    
        [meta] => Array
            (
                [version] => 3.2
                [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
            )
    
        [validation] =>
    )

    https://www.ads-software.com/plugins/document-gallery/

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

    (@danrossiter)

    Hi Felurian,

    I’m glad you enjoy Document Gallery, and I apologize for the late response.

    Ghostscript, unlike IMagick, does not require a special PHP extension. You just need a path to the Ghostscript program. For windows, the executable is going to be called something like “gswin??c.exe”.

    Does that help at all?

    -Dan

    Thread Starter Felurian

    (@felurian)

    It Works ! I put this in the ghostscript absolute path field :
    C:\gs\gs9.16\bin\gswin64.exe

    It works only for pdf files. Imagick is still not activated. The checkbox is disabled.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Felurian,

    I’m glad Ghostscript is working!

    With IMagick, the logic which determines whether that checkbox is enabled is all within WP core and depends on IMagick being configured right. If it’s disabled, that means that it’s not installed correctly. I did a bit of googling and this guide seems to be a good one for WAMP: https://www.devside.net/wamp-server/installing-and-using-imagemagick-with-imagick-php-extension-php_imagick-dll-on-wamp.

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! ??

    Thread Starter Felurian

    (@felurian)

    Hi Dan,

    I use Wamp Server, not Wamp Developer Pro but I tried this solution and it doesn’t work for me. I also searched on the web any solution, in vain.

    It doesn’t matter, I will try when I’ll put my website on a distant server, without wamp.

    Thank you.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Sounds good, Felurian!

    When you move to production, feel free to reach out if you run into any issues!

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Installation with Wamp on a localhost’ is closed to new replies.