How to launch the program from ASP?
Image Converter Plus
Image Converter Plus Home FeaturesDownloadOrderSupport

Introduction of ImageConverter Plus command line
Program Overview
Program Features
Comand line syntax
Script
Makebat
Source
Convertto
BMP
JPG
GIF
PNG
TGA
TIFF
PSD
EXR
DDS
PDF
EPS
MNG
Dest
Save_opt
Template
Target_opt
Add operations (-oper)
Crop
Effect
Mirror
Resize
Rotate
Replace_color
Canvas
Color_profile
Watermark
Page_filter
Sort
How to...
Launching the program
Launch the program?
Launch the program from BATCH-file?
Launch the program from another application?
Use ImageConverter Plus command line on Web-server?
Launch the program from PERL script under Windows server?
Launch the program from Cold Fusion?
Launch the program from ASP?
Hide concole window when I launch the program from my application?
Working with files and folders
Convert files from local network?
Convert files from folder with all subfolders?
Specify name of output file?
Delete source images after conversion?
Overwrite files?
Convert CALS Raster files to TIFF?
Convert DICOM image file into TIFF?
Convert PCX file into TIFF?
Convert PDF file into TIFF in batch mode?
Convert SFF files into TIFF?
Convert TIFF file with Wang OldJPEG compression into standard TIFF?
Convert WinFax files into TIFF?
Convert WPG clipart into TIFF?
Convert color image into grayscale TIFF?
Convert Group3 and Group4 Fax files into TIFF format?
Changing image size and resolution
Stretch image proportionally?
Change image resolution?
Change image size and keep resolution?
Working with border and margins
Crop white margins from photo and fax?
Add a solid border to all images?
Working with colors and transparency
Change one color to another?
Invert colors?
Convert file with CMYK color space?
Make colors transparent?
Other questions
Save each page of multipage file separately?
Find out what version of batch converter you have?
Convert TIFF file with rotation?
Create a multipage file?
Find out numeric color code?
Additional Information
Color effects
Features in details
Supported formats
Registration and licensing
License agreement
Order ImageConverter Plus
fCoder On-line
About
Online support form
Custom development

How to launch the progpam from ASP?


You need to install Windows Script 5.6 on your server to launch Image Converter Plus command line from ASP script. You can read more about Microsoft Windows Script and download it from: http://msdn.microsoft.com/scripting/default.asp

If you don`t know, what version of the Windows Script is already installed on your server click here.

Below you will find examples of lauching Image Converter Plus command line from ASP using JavaScript and VisualBasic syntax.

Example with JavaScript syntax:


<%@ LANGUAGE = "JAVASCRIPT" %>
<% // The path to Image Converter Plus command line with its parameters
var commandLine = "C:\\Program Files\\ImageConverter Plus\\ICPCL.exe -convertto tiff -source "C:\\Inetpub\\wwwroot\\Source\\*.*\" -dest " C:\\Inetpub\\wwwroot\\Out\" -template exists:overwrite "; // Creating a WSH object
var WshShell = Server.CreateObject("WScript.Shell"); // Launching Image Converter Plus command line
var oExec = WshShell.Exec(commandLine); var Buf = ""; // The program response stream
while (!oExec.StdOut.AtEndOfStream) {
Buf = oExec.StdOut.Read(1);
// If the current symbol is a line feed -> the "<BR>" tag should be added for HTML line feed
if (Buf == "\n") { Buf = "<BR>" + Buf; }
// Writing out the program response
Response.Write(Buf); } WshShell = null; %>


Example with VisualBasic syntax*:


<%
' Defining variables
Dim WshShell, oExec, CommandLine, Buf
' The path to Image Converter Plus command line with its parameters
' Don`t forget -nodlg key in demo version
CommandLine = "C:\\Program Files\\ImageConverter Plus\\ICPCL.exe -convertto tiff -source "C:\\Inetpub\\wwwroot\\Source\\*.*\" -dest " C:\\Inetpub\\wwwroot\\Out\" -template exists:overwrite "
' Creating a WSH object
Set WshShell = Server.CreateObject("WScript.Shell")
' Launching Image Converter Plus command line
Set oExec = WshShell.Exec(CommandLine)
' The program response stream
Do While Not oExec.StdOut.AtEndOfStream
Buf = oExec.StdOut.Read(1)
' If the current symbol is a line feed -> the "<BR>" tag
should be added for HTML line feed
if Buf = Chr(13) then Buf = "<BR>" & Buf
' Writing out the program response
Response.Write Buf
Loop
Set WshShell = Nothing
%>


If you don`t know, what version of the Windows Script is already installed on your server:

Try to run one of example above, using your correct command line.

If an error page ("HTTP 500.100 - Internal Server Error - ASP error") will appears and a text "Object doesn`t support this property or method" will be in the "Error type" item then Windows Script on your server has a version older than 5.6 and you need to install Windows Script 5.6 from http://msdn.microsoft.com/scripting/default.asp

 


© 2007, fCoder Group, Inc.
Site Map | Other Projects