Could anyone provide me with the correct asp syntax for converting a colorspace? Also, can anyone tell me what exactly would cause IIS to completely bomb (it's not just my test site that fails, it stopped ALL sites under IIS, and then it wouldn't even let me into the IIS admin panel. I could not stop or restart it, I had to reboot.) so this is clearly not ideal, though quite possibly just my lack of knowledge with respect to what I've done. The code below is what causes the crash.
Code: Select all
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
set objIM = Server.CreateObject("ImageMagickObject.MagickImage.1")
if IsNull(objIM) then
Response.Write("FATAL ERROR: Could not create object to work with graphic! Please contact support")
else
objIM.convert "-colorspace RGB C:\inetpub\wwwroot\dotnet\14.jpg C:\inetpub\wwwroot\dotnet\14_rgb.jpg"
end if
%>