I'm working on XPPro IIS 5.1 ASP classic. I've installed the latest version of imagemagick to:
C:\Inetpub\wwwroot\myTest\ImageMagick
I have a pdf file sitting in the following folder:
C:\Inetpub\wwwroot\myTest\files
If I open the cmd window and run C:\>convert C:\Inetpub\wwwroot\myTest\files\test.pdf C:\Inetpub\wwwroot\myTest\f
iles\test.jpg The pdf is converted to a jpg.
I create an ASP page called image.asp within the C:\Inetpub\wwwroot\myTest folder:
Code: Select all
<%
Set Img = Server.CreateObject("ImageMagickObject.MagickImage.1")
Img.Convert "C:\Inetpub\wwwroot\myTest\files\test.pdf", "C:\Inetpub\wwwroot\myTest\files\test.jpg"
%>
Any suggestions as to how to make this work would be greatly appreciated.