You need Ghostscript. Install Ghostscript I'll call it GS now. I had to do it twice for some reason before it took. Add the 'bin' address in the GS folder to the system variable. Test the installation with gswin32 test. Important note: gs doesn't work in Windows 'gs' is not recognized as an internal or external command, operable program, or batch file. You need to use gswin Now, your PHP script may run in the cmd prompt, but nothing happens when you run it in a browser.
Improve this question. Community Bot 1. Matthew Leingang Matthew Leingang 1 1 gold badge 3 3 silver badges 16 16 bronze badges. Why not combine both commands into a single line command? Add a comment. Active Oldest Votes. The only difference from your original command is deactivating the alpha channel: convert -alpha deactivate -verbose -delay 50 -loop 0 -density paper. Improve this answer. Dan Halperin Dan Halperin 3 3 bronze badges. The Overflow Blog.
Please Sign up or sign in to vote. See more: C. I tried to convert PDF to tif images using ImageMagick it works but it is very slow with large files.
Now I tried to use ghostscript, it works fine from power-shell but it is not executing with c asp. Here is the command that works:. Copy Code. Posted 6-Feb am AskalotLearnalot. Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. Posted 6-Feb am phil. AskalotLearnalot 6-Feb pm. The arguments do not seem correct. Please debug and watch carefully for the contents of this string; and double-validate its syntax is the proper one.
I updated the question. Most likely something wron g with your parameters. I am looking for a faster way to do this perferably by modifying the options to "convert". Improve this question. Kurt Pfeifle How large is the image? How complex is the postscript program?
Can you provide a link to a sample PostScript file you're dealing with? An interactive GUI? Sounds kind of like the goal of Display PostScript. Add a comment. Active Oldest Votes. My suggestion is: Use Ghostscript. You can see how ImageMagick calls Ghostscript and which parameters it uses for the call -- look for a printed line on stderr containing gs , gsx or gswin32c or gswin64c by running for example: convert -verbose some.
Improve this answer. Kurt Pfeifle Kurt Pfeifle That I think would be a big chunk of the conversion time. Try a raster image format that Ghostscript converts to natively.
That may be the reason for the slowdown: imagemagick has to do an extra conversion of the gs output.
0コメント