Scale Graphics Proportionally
GraphicScale.fso
Problem description
FrameMaker options for scaling graphics are very limited. Proportional scaling is only possible with the mouse and is also imprecise.
In addition, neither the size nor a variety of required settings can be set during the import of graphics in a manner that makes sense and is practical.
There is no option when importing a graphic to fit the graphic to a selected frame (even though the import dialog has a corresponding option).
Although the size of the graphic can later be adjusted by percentage or manually using the mouse, exact proportional scaling requires the use of a calculator because the width as well as the height must be specified. If the height is adjusted, the width will not be adjusted automatically (and vice versa).
Function description
The script can be used to adjust the graphic to the frame or the frame to the graphic. Alternatively, you can specify the width or height of the graphic.
The script also permits the automatic adjustment of the graphic to the frame during import.
The specified margins apply to the import and also to the subsequent scaling through the script.
Requirements
- FrameMaker 6.0 or higher
- FrameScript/ElmScript 4.1 or higher
Notes
The script works with structured and unstructured documents.
It is recommended to enable the ’Don’t Run Around’ option for the graphic import to suppress the so-called ‘Scroll Back Bug’ (
ATN 322405).
When the ‘Store Filename (UserString)’ option is enabled, the file name and path will be saved with the graphic as a so-called UserString during a non-referenced import of graphics . This enables a later identification of the graphics file (e.g. through ‘Scale Graphics Proportionally > Info’).



Klaus Müller![[i]-frame Graphic Scale FrameScript Graphic Scale](fileadmin/content/images/Leistungen/FrameScript/i-frame_en/GraphicScale1.png)
![[i]-frame Graphic Scale [i]-frame Graphic Scale](fileadmin/content/images/Leistungen/FrameScript/i-frame_en/GraphicScale2.png)
![[i]-frame Graphic Scale [i]-frame Graphic Scale](fileadmin/content/images/Leistungen/FrameScript/i-frame_en/GraphicScale3.png)
![Graphic Scale4 [i]-frame Graphic Scale](typo3temp/pics/d2bfda5193.png)