
Programming MediaRich for SharePoint
9
•
•
•
•
Setting the save parameter “type” determines what type of image the framework is going
to save. The save parameters correspond to the parameters that can be passed to the Media
object’s
save()
method. For some formats, such as GIF and JPEG, there are many more
parameters that can be specified.
NOTE:
For more information about what parameters are available for saving images, see “save()”
on page 124.
Before returning control to the framework, you must complete a final step:
resp.setSaveParameters(saveParams);
This line sets the save parameters with the instance altered in the script:
return image;
This last line returns the Media object named “image” for the framework to use in the
response, applying the response's save parameters.
Deploying a New MediaScript
To deploy a MediaScript, copy the file to the appropriate directory. In a default installation,
the directories are:
For Export
[MediaRich Root]\Shared\Originals\Scripts\SharePoint\Export
For the MediaCart
[MediaRich Root]\Shared\Originals\Scripts\SharePoint\Batch
NOTE:
These directories are set during the MediaRich for SharePoint (Server) installation. If you
are not aware of the details of your installation, you should consult your System Administrator.
Metadata Support
MediaRich fully supports loading, saving and merging IPTC, EXIF, and XMP metadata for
JPEG, TIFF, and Photoshop files. MediaRich also supports loading XMP metadata from the
following file formats: Illustrator, EPS, GIF, PDF, and PNG. This metadata is available to
the script as a metadata XML document. Detailed schemas are provided for the EXIF and
IPTC documents constructed by MediaRich. The XMP metadata document conforms to the
schema defined by Adobe.
The MediaRich for SharePoint product currently supports only IPTC and EXIF metadata
for JPEG, TIFF, and Photoshop files.
For for more information about the Metadata Interface and common methods, see
Appendix A, “MediaRich Metadata Support.”