|
CollinsImage.CGI
Resize Web Based images
to Web optimal Size and to your Standard format 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...)
Imput Formats: GIF, PNG, Jpeg, Bmp, EMF, WMF, ICO Output Formats: GIF, PNG, Jpeg, Bmp, ICO Parameters:
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;
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');
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";
|
|
|