problem with imagemagick conversion and asp (classic)

D

dal.luc

Hello,

I'm tryine to use imagemagick in asp pages to convert svg files in
jpg.

Here is the script I use

depart=Server.MapPath("../temp/testsvg.svg")
fin=Server.MapPath("../temp/testsvg.jpg")
Set img = CreateObject("ImageMagickObject.MagickImage.1")
Img.Convert "-box=black",depart,"-write",fin,"-resize=50"
Set img=Nothing

IUSR has all the rights on the directory temp

This script doesn't do anything !!

When I use the command line convert c:\temp\testsvg.svg c:\temp
\testsvg.jpg
everything works fine
Who can help me ?
Thanks
 
A

Anthony Jones

dal.luc said:
Hello,

I'm tryine to use imagemagick in asp pages to convert svg files in
jpg.

Here is the script I use

depart=Server.MapPath("../temp/testsvg.svg")
fin=Server.MapPath("../temp/testsvg.jpg")
Set img = CreateObject("ImageMagickObject.MagickImage.1")
Img.Convert "-box=black",depart,"-write",fin,"-resize=50"
Set img=Nothing

IUSR has all the rights on the directory temp

This script doesn't do anything !!

When I use the command line convert c:\temp\testsvg.svg c:\temp
\testsvg.jpg
everything works fine

You don't appear to be writing the result back to disk.

http://jmagick.wiki.sourceforge.net/Writing+image+to+file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top