Converting PDF to JPG fails with no error (Classic ASP)
Posted: 2011-12-07T08:49:49-07:00
i'm running Windows Server 2003 with imagemagick 6.7.3 Q16 and Ghostscript 9.04 installed. creating a JPG works ok when running a VBS script but fails when running the same script in ASP
-- works
Set img = CreateObject("ImageMagickObject.MagickImage.1")
img.Convert "c:\www\xyz\temp\test.pdf", "c:\www\xyz\temp\test.jpg"
Set img = Nothing
-- fails (no error and no jpg file)
Set img = Server.CreateObject("ImageMagickObject.MagickImage.1")
img.Convert "c:\www\xyz\temp\test.pdf", "c:\www\xyz\temp\test.jpg"
Set img = Nothing
-- fails (no error and no jpg file)
Set img = Server.CreateObject("ImageMagickObject.MagickImage.1")
img.Convert "http://www.somewebsite.com/temp/test.pdf", "c:\www\xyz\temp\test.jpg"
Set img = Nothing
-- works
Set img = CreateObject("ImageMagickObject.MagickImage.1")
img.Convert "c:\www\xyz\temp\test.pdf", "c:\www\xyz\temp\test.jpg"
Set img = Nothing
-- fails (no error and no jpg file)
Set img = Server.CreateObject("ImageMagickObject.MagickImage.1")
img.Convert "c:\www\xyz\temp\test.pdf", "c:\www\xyz\temp\test.jpg"
Set img = Nothing
-- fails (no error and no jpg file)
Set img = Server.CreateObject("ImageMagickObject.MagickImage.1")
img.Convert "http://www.somewebsite.com/temp/test.pdf", "c:\www\xyz\temp\test.jpg"
Set img = Nothing