Tag Archives: web applications

ImageMagick and Ghostscript playing nice with web applications

I had to spent way too much time the last time to set up ImageMagick and Ghostscript together that I simply jump right in so you don’t have to waste time on this, like I did.

Creating thumbnails and images from a PDF is one of the most used features within Razuna. But the other day, when we run the normal convert command we were faced with an error message within our web application of:

Error: Uncaught exception ‘ImagickException’ with message ‘Postscript delegate failed....: No such file or directory

Of course, the first thing I did was to see if we have a error in the shell. Strangely, there was NO error when running the same command in the shell! Needless to say, I spent many hours looking for a solution, trying out different things from reinstalling ImageMagick and Ghostscript to looking all over the web for an answer.

In the end, it boiled down to that web applications (be it CFML, PHP, etc.), are looking for a different executable path then when you run command from the shell. Since Ghostscript installed the executable in the “/usr/local/bin/gs” path the web application could not find it. So the solution to “hours of pain” was to simply create a symbolic link to the “gs” library in the “/usr/bin” directory with:

ln -s /usr/local/bin/gs /usr/bin/gs

Hope this helps the next seeker!

HTML5 will make web applications fly

The fifth major revision of the HTML markup language (HTML5) brings some real power to web applications and will close the bridge for Online/Offline application.

As an example, Google has just showcased how they would leverage the power of HTML5 with the integrated database and Caching with the use of their famous GMail service. Since I have just posted about Collaboration and especially the Google Apps Services you might find the below video very interesting.

Watch closely, as they present the same application, with the same functions, on the iPhone and on the new Android mobile device. Big times, are coming for web developers (thought, this can already be done now with Adobe AIR and other applications that bring a website down to the desktop).