|
MediaScript™ is Equilibrium's powerful procedural scripting language that provides unprecedented image processing possibilities for MediaRich®. MediaScript, like JavaScript, is compliant with the ECMAScript standard and specification. It supports all the standard objects, conditionals, variables, and functions, as well as MediaRich's unique image processing functions.
These four images of a pair of shoes were created with one MediaScript file and one original image.
   
The original image was modified by MediaRich based on a series of image processing functions defined in the MediaScript and parameter information provided to the MediaScript. Parameter information can come from almost anywhere, e.g. a content management system, database, user input, or XML file.
You can think of a MediaScript as an imaging template. The MediaScript file used to create the shoe images, color.ms, appears on the right. Color.ms always performs the same functions: it loads an image, sets the background color, colorizes the image, scales the image, and then saves the file as a JPEG.
What makes it a template is the fact that it accepts input for the image filename, width, height, and color. That means that color.ms can load any original image, regardless of file format, scale it to any size, colorize it to any color, then optimize it and deliver it to the Web.

|