Ghostscript #220
Comments
Hi, I will take a look on your suggestion! |
Thank you. It is for your benefit also, considering how many WordPress installations are out there. (developing needed for each new one) You decide if issue will be closed. |
Ghostscript is available in the latest 1.2.16 unstable release |
Thank you for Ghostscript support. I uninstalled my Imagemagick and Ghostscript I installed in Windows 10. Before it with some mixing of different tutorials made it to work. Now not anymore. Do some lines need to be added in PHP, Apache conf files ? Tools - ImageMagick & Ghostscript console(s) are executed fine. |
Anyway, cannot lose more time on it as it is just localhost testing. Hosting servers probably have all configured, so no need to worry about it. I managed somehow via this tutorial: Just installed both ImageMagick and Ghostscript Windows exe inside Neard folder, to have all in one place. And adjusted windows enviroment paths accordingly. This WordPress plugin complains same thing, but Ghostscript is now making PDF thumbnails. Anyway, just a bit info for other Neard Users who want it activated on localhost. PS: Just to add, I never trusted this plugin. And it showed itself it is not to be trusted when detecting. Any time I changed something in servers, Windows configuration I restarted servers and tried to generate PDF thumbnails again. |
Hi @StaggerLeee, Thanks for your feedback about Ghostscript and Imagick! Thnks for your contrib! |
Hi @crazy-max, I cannot open new issue as I am not sure if I understand roles of ImageMagick and Ghostscript in Neard. I do not know is it, as it is now, by fashion, or what. Are those 2 tools in Neard supposed to work with Apache, PHP on default ? Without any tweaking. Now I am not sure it is possible. |
@StaggerLeee Yes they are supposed to work with Apache and PHP as they are included in the env var PATH to work with. If you go to http://localhost/?p=phpinfo, you can check that imagick extension is loaded : I have installed the latest release of Wordpress to check your issue but can you tell me where i can find the page "PDF Thumbnails Support test" on Wordpress ? |
Dont trust blindly this plugin. It has problem detecting Ghostscript in some cases. Go to the Media Manager and simply upload a PDF. For 2 second you will see if Ghostscript is working on server. If there is no PDF thumbnail, it does not work. |
Ok the problem is that PDF Thumbnails Support Test plugin is Linux specific.
|
Ok, after changing some things on Neard, ImageMagick is now OK : In the file
I will create a new issue for this. |
Thing is I cannot make it to work in Neard unless I put all .dll files in active Apache bin folder. ImageMagick .dll files from here: http://windows.php.net/downloads/pecl/deps/ Or I make something wrong totally. As I see all those .dll files are not inside ImageMagick & Ghostscript folders inside tools folder. Need to download them and put inside apache bin folder. |
@StaggerLeee Can you post a screenshot of imagick section in your phpinfo (http://localhost/?p=phpinfo) ? I think i have found an issue with |
I have "formats", as Ghostscript is installed "outside" Neard and recognized right. (Or maybe I have formats because ImageMagick is isntalled "outside" Neard too. Outside means for Windows, under parantheses just because I installed exe inside Neard folder, but it really means/change nothing.) |
Yep i know Ghostscript is required but i have to figure out why i don't have all these ImageMagick supported formats like you ;) What files have you added in |
I wrote above. I installed ImageMagick too as imagine there is none in Neard. Maybe that windows installation and enviroment paths added formats. Do not know now for sure, it is really complicated. To many steps to get it to work. dll files inside (copied to) active Apache bin folder are all .dll files from this ZIP: (VC14 - x86. From bin folder in this ZIP, all dll files) |
Let me uninstall ImageMagick & Ghostscript from Windows, remove their Enviroment Variables, remove .dll from Apache bin folder, and test with only this PECL dependency solution. Will be back shortly. |
@StaggerLeee Thanks for your support |
Ok now with Ghoscript when i try to use ImageMagick to convert PDF i've got this error :
But if i rename |
Yes it is working now, thank you.
|
To summary your issue, i have to :
|
Put both those .exe (copies) in future releases, just to be sure. Not so big deal, they are small files: Did you just extract whole ZIP content inside imagemagick PHP subfolder ? |
Yep from CMD because |
This is very important point for all Neard users using this. Even for me to understand it right, and not to do things by heart. Did you just extract whole ZIP content inside imagemagick PHP subfolder ? |
I will create a new issue to explain everything |
I have loved following this discussion. Is the thumbnail generated automatically or is something else needed in html to make this happen? I'd love to see this in Joomla articles |
In WordPress it is handled automatically when Ghostscript is detected. Plugin and third party code do not have to do anything special with code. Generating thumbnail. Themes still have to do a bit in code to call it, mostly to link it to the PDF file. |
How to install Ghostscript together with ImageMagick on Neard ?
Is it possible to add it to Neard as Tools module ?
ImageMagick is installed and detected well of course.
https://www.ghostscript.com/
I need it for new PDF thumbnails manipulation, now in core of WordPress 4.7 and above versions.
Thanks for any answer.
The text was updated successfully, but these errors were encountered: