Arbortext Command Language > set Command Options > set graphicwebtransform
  
set graphicwebtransform
set graphicwebtransform=transformstring
This command specifies a set of graphic formats that should be transformed to a different graphic format when publishing for the following types of HTML output:
Web
HTML Help
HTML File
The transformstring is one or more transformation rules. Multiple rules are separated by a vertical line ( | ). Each transformation rule has two parts separated by a colon ( : ). The first part of the rule is a list of graphic formats to be converted separated by a comma ( , ). The second part of the rule is the graphic file format to which the first set of graphic formats should be transformed during publishing.
The following graphic formats are supported for transformation:
sunbm — Sun Bitmap
xbm — X Bitmap
eps — Encapsulated PostScript file
cur— Windows Cursor file
drw — IslandDraw DRW file
sunicon — Sun Icon file
tif — Tag Image File Format
drwunc — IslandDraw DRAW file (not compressed)
png — Portable Network Graphics
wmf — Windows metafile
icon — Windows icon
pcx — PC Paintbrush File Format
bmp — Windows Bitmap
cgm — Computer Graphics Metafile
gif — Graphic Interchange Format
jpg — Joint Photographic Exports Group
calsG4 — CALS raster (G4)
svg — Scalable Vector Graphics
idrArbortext IsoDraw file
idrzArbortext IsoDraw file
isoArbortext IsoDraw file
isozArbortext IsoDraw file
edzCreo View file
pvzCreo View file
+ — Represents all graphic file formats that are not web-friendly
The web-friendly graphic file formats are GIF, JPEG, and PNG.
* — Represents all graphic file formats
These graphic file formats can be transformed to one of the following types:
png
jpg
gif
For the graphic file formats specified in the isoviewfileformats preference, the target cannot be gif.
webcgm
Indicates that a particular graphic file format should be transformed to CGM. In this case, the graphics can be viewed in HTML output in any viewer that supports WebCGM. You can use this setting in combination with the set cgmprofile preference to indicate a particular CGM profile to use for the converted graphics.
For example, to transform CGM and Arbortext IsoDraw graphics to WebCGM 1.0, you would set these preferences to the following values:
set graphicwebtransform=iso,isoz,cgm:webcgm
set cgmprofile=WebCGM_1.0
If cgmprofile is not set, then the graphics are transformed to the WebCGM 2.0 profile.
iview
Indicates that a particular graphic file format should not be transformed, and that in the HTML output graphics of that type will be displayed by using Arbortext IsoView.
Indicates that a particular graphic file format should not be transformed. In this case, if a specified graphic file format is not web-friendly, graphics of that type can only be displayed in a web browser if the stylesheet provides necessary HTML markup. For example, if the graphicwebtransform is svg:-, the stylesheet needs to produce HTML markup that displays SVG graphics.
When determining whether to transform a graphic, Arbortext Editor checks several ACL preferences. The graphicwebtransform preference takes precedence over all other preferences, except cgmprofile. The following other preferences can affect graphics transformations:
intelligentgraphicsconversion
graphicdefaultwebformat
isoviewfileformats
cgmprofile
For example, if graphicwebtransform is set to iso,pvz:iview, but isoviewfileformats does not include pvz, that graphic file format will still be displayed by Arbortext IsoView in the HTML output.
The graphicwebtransform preferences also overrides the value of the Convert Intelligent Graphics check box in the publishing dialog boxes.
For each graphic during publishing, Arbortext Editor checks to see whether that graphic file format is in one of the first part of the graphicwebtransform setting. If it is, Arbortext Editor transforms the graphic based on the target of the rule. If the format is not included in graphicwebtransform, Arbortext Editor processes the graphic based on whether the graphic is intelligent and whether the intelligentgraphicsconversion preference is set to on. If intelligentgraphicsconversion is set to off and the graphic is an intelligent graphic, the graphic is not transformed. Otherwise, if the graphic is not web-friendly, Arbortext Editor will transform the graphic based on the graphic file format specified by the graphicdefaultwebformat preference. A graphic is considered an intelligent graphic if it is a format specified by the isoviewfileformats preference.
Examples:
set graphicwebtransform=iso,isoz,edz,pvz:cgm|svg:png
set graphicwebtransform=*:png
Related Topics
Intelligent Graphics Overview
set intelligentgraphicsconversion
set graphicdefaultwebformat
set cgmprofile
set isoviewfileformats
Graphic Conversion Support