Skip to main content
Known Participant
May 14, 2025
Question

Structured FrameMaker 2022 - Issue with Imported Images not scaling to desired size

  • May 14, 2025
  • 4 replies
  • 2539 views

We are upgrading from Structured FrameMaker 11 to Structured FrameMaker 2022.

We have an automated process that imports an xml file containing multiple factsheets into FrameMaker. When the import completes, the factsheets are fully formatted. These factsheets include graphic eps files that are included in the import process.

When testing in FM 2022, we are using our existing FrameMaker templates, DTD, EDD, Rules file, and xsl. When importing, the file are formatting correctly in FrameMaker 2022, except for the graphics, which are not scaling correctly. After importing, the images in the first factsheet are scaling below 50%. In the subsequent factsheets, the images are scaled larger, but not scaling to the correct size - 100%.

We are not encountering this scaling issue with FrameMaker 11.

In FrameMaker 2022, are there additional instructions that need to be added to the EDD, XSL, Rules file, etc. so that these images import to the correct size?

4 replies

Matt-Tech Comm Tools
Community Expert
Community Expert
May 21, 2025

There are around 30 replies in various threads, so here's a recap to get things in the right direction:

  • Your subject and description aren't 100% accurate. While the EPS may have an embedded size, your XML doesn't specify a size, so you might consider editing the subject/description to read "Not scaling to desired size"
  • You have a number of paths you can investigate:
    • Editing the EDD to provide default formatting for your graphics elements that are missing formatting attributes and values
    • Using read/write rules to provide formatting upon XML import
    • Using Find/Change on the XML to add the attributes you want for formatting
    • Scripting on the imported XML in FrameMaker (as suggested by @frameexpert )

Please keep us posted!

 

***Also, I don't believe FrameMaker 11supported XML as a working file format...are you opening XML or .fm docs?

-Matt SullivanFrameMaker Course Creator, Author, Trainer, Consultant
Known Participant
May 22, 2025

Thanks for your assistance. We are importing xml file into FrameMaker 22 and viewing the graphics in the FM document. As an update,  one of my co-workers changed the DPI setting to 96 (See image below). The graphics that fit in one column are now scaling correctly; however, there are graphics that should span across 2 columns, and, instead, these are scaling down to approx. 50% to fit in 1 column. So, now, we are trying to figure out how to resolve this so that the 1-colmn graphics are correctly sized to fit in one column and the 2 column graphics are correctly sized to span across 2 columns:

 

Matt-Tech Comm Tools
Community Expert
Community Expert
May 20, 2025

It sounds like you're already using a read/write rules file in your structapp.

Have you set up read/write rules to specify fm properties for the scale of the graphics?

 

-Matt SullivanFrameMaker Course Creator, Author, Trainer, Consultant
Known Participant
May 21, 2025

These are the read/write rules that are currently set up:

element "graphic" {
is fm graphic element "graphic";
attribute "file" is fm property file;
attribute "impsize" is fm property import size;
}

Should I add 'width' and 'height' attributes to the rules?

attribute "width" is fm property width;

attribute "height" is fm property height;

Are there additional scaling attributes that should be added?

Matt-Tech Comm Tools
Community Expert
Community Expert
May 21, 2025

The charts vary in size. In the read/Write rules, can the values for the chart sizes be percentages, such as '100%'?


Please share the original XML representation prior to import to Fm

 

-Matt SullivanFrameMaker Course Creator, Author, Trainer, Consultant
Community Expert
May 15, 2025

Hi,

In FrameMaker 2022 there is an auto-scale option. Possibly this is related to your problem.

Open the preferences in Edit | Preferences.

In Global | Graphics there is the option Auto-scale Image Along Width.

Check, if it makes a difference, when this option is activated or deactivated.

Best regards, Winfried

Known Participant
May 15, 2025

Thanks. We will try this

Jeff_Coatsworth
Community Expert
Community Expert
May 14, 2025

What version of FM2022 are you testing this with and is it all patched up to the latest patch version?

Known Participant
May 15, 2025

FM version shows 17.0.6.798 in the Help > About FrameMaker window