Security restriction for converting PDF to JPG in IIS 6.0

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Wkidd

Security restriction for converting PDF to JPG in IIS 6.0

Post by Wkidd »

I'm trying to convert a pdf file to a jpg file on windows 2003 server, IIs6.0, and asp.

Other versions
1. ImageMagick version 6.5.7.3-Q16
2. ghostscript version 8.64

Code: Select all

Command Line
C:>Convert -density 300 test.pdf test.jpg      ' OK

Program with ImageMagickObject 
<%
Set Img = Server.CreateObject("ImageMagickObject.MagickImage.1")

Img.Convert "test.gif", "test.jpg"                                   ' OK
Img.Convert "-density", "300", "test.pdf", "test2.jpg"          ' Nothing happen
%>
The page does not give me any errors but it also does not convert the pdf to jpg.
I can use asp/com to convert a png or gif to a jpg but not a pdf. And it works on command line.

I think the problem is a security restriction in IIS.

It works fine if I change guest user group to power user group of the Internet Guest Account IUSR_TEST .

I have not found anyone to solve this problem for converting PDF file to JPG file in Windows COM+ & Visual Basic and Developers Board.

What that mean is nobody can use the windows ImageMagickObject with any other languages in windows server.

Any help would be greatly appreciated.
susana

Re: Security restriction for converting PDF to JPG in IIS 6.0

Post by susana »

Hello Wkidd, I have your same problem but with PHP, did you finaly could resolve it?
How?
Thanks a lot
Wkidd

Re: Security restriction for converting PDF to JPG in IIS 6.0

Post by Wkidd »

The imageMagick doesn't work in IIS6.0 at all.

I think it's a same problem with other languages (ASP, PHP, ASP.NET) in IIS6.0.

Nobody has solved it in the imagemagick board and internet.

It's a big bug or doesn't support IIS ....
Wkidd

Re: Security restriction for converting PDF to JPG in IIS 6.0

Post by Wkidd »

No answer .... no one can fix this bug ...

Do I have to give up using the Imagemagick in IIS ?

Does anyone recommend a good solution for converting from pdf, eps, or psd to jpg?
allnet4u

Re: Security restriction for converting PDF to JPG in IIS 6.

Post by allnet4u »

I just install the imagemagic on my IIS 6 server.
still cant get it work...
did you solve youe problem?

i'm looking now to make png tranperency from eps file that have clipping path.
i found imagemagic and i'm hopping it's going to work under my IIS 6 and my asp code.
nitech
Posts: 12
Joined: 2007-11-23T13:57:17-07:00

Re: Security restriction for converting PDF to JPG in IIS 6.

Post by nitech »

Guys, it's wrong to conculde that Imagemagick doesn't work on IIS6. I've had it working on IIS6 for a long while. However I have problems with ghostscript with imagemagick on IIS7. Trying to find a solution now...
Post Reply