Hello,

Long time Unix/Linux web programmer, beginner ASP.NET/VB programmer...

Operating: 32Bit Win 7, IIS 7.5

I'm attempting to use ImageMagick to convert a tif image on one mapped server to a gif image on another mapped server.

When I run the ImageMagick convert command from the cmd prompt, the process completes just fine with my user credentials.

When I create an ImageMagick object in ASP.NET, I can successfully convert the images if they are local on my machine.

I cannot get the script to execute properly using the mapped drives. I do not believe this is an issue with ImageMagick. I believe it is a permissions issue.
I have given IUSR read access to the folders with the tif images, write access to the gif images, read/write to the windows\temp folder on my machine (needed for ImageMagick) and read/execute to the Program Files\ImageMagick folder where the exe is.

Here is the code which works fine on if the files are on the local machine:

ASP.NET with VB
Code:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" aspcompat=true%>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="Microsoft.VisualBasic" %>
<%@ import Namespace="System.Drawing" %>
<%@ import Namespace="System.Drawing.Image" %>
<%@ import Namespace="System.Drawing.Drawing2D" %>

...other unrelated working code...

Dim imageMagick As Object = Server.CreateObject("ImageMagickObject.MagickImage.1")

Dim tifImg As String = "c:/imagenamewithfullpath.tif"
Dim gifImg As String = "c:/imagenamewithfullpath.gif"

Dim msgs As String = imageMagick.Convert(tifImg, gifImg)
Problem Code:
Code:
Dim imageMagick As Object = Server.CreateObject("ImageMagickObject.MagickImage.1")

Dim tifImg As String = "j:/imagenamewithfullpath.tif"
Dim gifImg As String = "k:/imagenamewithfullpath.gif"

Dim msgs As String = imageMagick.Convert(tifImg, gifImg)
Any advice/help would be very much appreciated!
Thanks,
~Maria