HOME

Products
The Arc
HTML to PDF

Free CollinsPDF.js
Free CollinsHTML.js
Free GIS

(on-line service)
CustomerCareSystem
Scripts
 
CollinsImage.CGI
 
Price $79 per server

Resize Web Based images to Web optimal Size and to your Standard format
CGI Executable for Windows IIS based servers to resize and reformat images. Save Resized/Reformatted Images to disk or send back to client. The CGI reads image files from the server's local disk or off the web by its URL. Creates multiple sized images when writing to disk in a single process.

See:  urlToFile:: JavaScript for Clients or other Servers to save the generated image to their own disk. Create an image server for your whole organization, have all your applications use 1 image server.

Use this live test to see how it works. Create the correct sized images for merchant web sites. Our collinsPDF (creates PDF files) requires images in Jpeg format, this utility sizes and formats the images as necessary. Having web optimal images enhances the appearance and speed of your site. The preloaded example of LargeImage.png goes from 839K to 8K bytes, or use your own to see the results. (do not batch mis-use this example...) 

Image URL
drag image from web page to text area

make sure it exists (FYI: LargeImage.png 763 X 604 . 839,065 bytes)
Output Max Height   keeps the original image's aspect ratio
Output Max Width
Output Format
   
Right-Click on the generated Image to View Properties - Format, Pixel Size and Number of Bytes...
 

Imput Formats: GIF, PNG, Jpeg, Bmp, EMF, WMF, ICO

Output Formats: GIF, PNG, Jpeg, Bmp, ICO

Parameters:

  • Input= URL or Server File Specification of the image to Convert
  • MaxHeight= maximum height of the generated image(s). supply a list of values to generate multiple image to disk, default=120
  • MaxWidth= maximum width of the generated image(s), supply a list of values to generate multiple image to disk default=120
  • output=  [Optional] - Write Image to server's local disk, default is to return image to Client
  • Format= output format GIF, PNG, BMP, ICO,  JPEG, default=Jpeg
  • Output file root path is defined using an INI file
     

JavaScript Example: View the Results

cgi = "http://your-server/bin/CollinsImage.cgi?input="
height = "&maxHeight=300";
width = "&maxWidth=200";
image = "http://CollinsSoftware.com/largeImage.png";
 

url = cgi + image + height + width;
window.open(url,'picture');


JavaScript Example: Save Result to a Local File (client or server)

cgi = "http://your-server/bin/CollinsImage.cgi?input="
height = "&maxHeight=300";
width = "&maxWidth=200";
image = "http://CollinsSoftware.com/largeImage.png";

url = cgi + image + height + width;
urlToFile(url,'c:/temp/smallImage.jpg');


JavaScript Example: Have the server save 3 sizes of the same image in 3 folders

cgi = "http://your-server/bin/CollinsImage.cgi?input="
height = "&maxHeight=64,130,400";
width = "&maxWidth=64,130,400";
image = "http://CollinsSoftware.com/largeImage.png";
output = "&output=./thumbnail/0.jpg,./small/0.jpg,./large/0.jpg";


url = cgi + image + height + width + output;
urlExecute(url);