Page 1 of 1

Using ImageMagick StdIn & Stdout

Posted: 2009-01-04T12:37:06-07:00
by DannyGM
Hello,
Sorry about my grammar, English isn't my tang.

I am tring to create images on the file on my ASP dynamic website.

This is the source code:

Code: Select all

<%
set x=createobject ("wscript.shell")
set a=x.exec("C:\CANDELETE\VisualMagick\bin\convert.exe logo: -")
response.contentType="image/GIF"
response.write binaryWrite a.stdOut.readall
%>
I get some data from the server, but it's not an image.

Any one have idea?

Thank you.

Re: Using ImageMagick StdIn & Stdout

Posted: 2009-01-05T17:04:26-07:00
by DannyGM
I didn't solve but,

But I success to use the object in ASP pages:

Code: Select all

Set img = CreateObject("ImageMagickObject.MagickImage.1")
Dim myArray(0)
myArray(0)="JPG:"
Response.contentType="image/JPEG"
l=img.convert ("logo:","-resize","250X250","-quality","1",myArray)
response.binaryWrite myArray
This page show the ImageMagick Logo resized and in low quailty.

Thank you to all the members in the forum.