Skip to main content
Inspiring
January 19, 2018
Question

image resolution (dpi) is completely wrong in Fm 2017

  • January 19, 2018
  • 1 reply
  • 1736 views

Hi all

I'm using FrameMaker 2017 all patched up (14.0.3). I import an png image (a screen shot at 96 dpi) and I select 150 dpi in the "Imported Graphic Scaling" dialog. However, this doesn't seem to work: the image is scaled to 1.04% of its original size and the dpi is "unknown" in the Object Properties dialog panel pod thing even though I didn't scale the image by dragging one of its corners.

Has anyone else seen this bug?

Cheers

    This topic has been closed for replies.

    1 reply

    Community Manager
    January 19, 2018

    I just tried the same: Imported a screenshot png (2195 x 1397 px / 96 dpi). During import (via > Insert > Image, the screenshot is scaled down to fit (20.77%, dpi unknown). I set the dpi manually to 150 dpi and the screenshot gets resized to 48.0% at 150 dpi.

    What size is your screenshot?

    Known Participant
    December 14, 2018

    Hi, this feels a lot like a bug and it's still there in 14.0.4.511.

    Using the "old fashioned" File > Import > File command, you get the Imported Graphic Scaling dialog that asks you to select a dpi setting. Any dpi setting you input is ultimately ignored (even if you use an object style) and you still have to right-click and select Object Properties to set it a second time.

    For some reason, the Imported Graphic Scaling dialog does not seem to come up when you use the Insert > Image method and you have to resize the image through Object Properties.

    Why the Imported Graphic Scaling dialog is called for one method and not the other is a mystery. Why the dialog has no effect is an even bigger one.
    I'm surprised I haven't seen more mention of this problem. Importing an image is a pretty basic functionality.

    Community Manager
    December 17, 2018

    I use FrameMaker 2019.0.2.503.

    I want to import a jpg file with  dimensions of 610 x 457 pixels and 300 dpi.

    First I tried to import into a table cell. When I insert this jpg image, the DPI value is Unknown. If I do this via Insert | Image, the scaling in the object properties is 1.97 %. If I do this via File | Import | File, the scaling in the object properties is 4.27 %. Any dpi values during the import are ignored.

    When I create an anchored frame first and import via Insert | Image, then the scaling is 72 dpi, no matter, if the image will fit into this frame. If I import via File | Import | File, then the set DPI value is kept correctly.

    When I import the jpg file into the regular text flow, then the results are almost the same. When I  import via Insert | Image, then the DPI in the object properties is Unknown and the scaling is 72 dpi. If I import via File | Import | File, then the set DPI value is kept correctly.

    When I create an anchored frame first and import via Insert | Image, then the scaling is 72 dpi, no matter, if the image will fit into this frame. If I import via File | Import | File, then the set DPI value is kept correctly.

    When I create an anchored frame first, then the results are the same as in the table: When I  import via Insert | Image, then the DPI in the object properties is Unknown and the scaling is 72 dpi. If I import via File | Import | File, then the set DPI value is kept correctly.

    I tested this with a completely new file with the FrameMaker default template.

    At least on my PC the import does not work reliably. My results are almost the same as Yves'.


    Let's try to break that down. I have created an image with 610 × 457 px at 300 dpi and went through it:

    I want to import a jpg file with dimensions of 610 x 457 pixels and 300 dpi.

    First: Given, that 1 inch is 25.4 mm, the image dimensions of this test image are 52 × 39 mm:

    Length: (610 px × 1 inch) / 300 dpi = 52 mm*

    Height: (457 px × 1 inch) / 300 dpi = 39 mm*

    * all image dimensions given here are rounded, even if FrameMaker shows the exact number with three decimal places.

    Import into a table cell

    First I tried to import into a table cell.

    When I insert this jpg image, the DPI value is Unknown.

    If I do this via Insert | Image, the scaling in the object properties is 1.97 %.

    If I do this via File | Import | File, the scaling in the object properties is 4.27 %. Any dpi values during the import are ignored.

    I can confirm that. Looks to me like importing an image into a table cell follows its own "rules". Needs further investigation. I will check this with the developers.

    Import into an existing anchored frame

    When I create an anchored frame first and import via Insert | Image, then the scaling is 72 dpi, no matter, if the image will fit into this frame.

    If I import via File | Import | File, then the set DPI value is kept correctly.

    Yes, if I import the test image via Insert > Image into an anchored frame, it is imported at 72 dpi. Dimension is 215 × 161 mm. Scaling is given as 100%.

    Length: (610 px × 1 inch) / 72 dpi = 215 mm

    Height: (457 px × 1 inch) / 72 dpi = 161 mm

    Yes, if I import the test image via File > Import > File into an anchored Frame and select 300 dpi in the "Import Graphic Scaling" dialog, it is correctly imported at 300 dpi and dimension is correct at 52 × 39 mm. Scaling is given as 24%.

    Import into the text flow

    When I import the jpg file into the regular text flow, then the results are almost the same.

    When I import via Insert | Image, then the DPI in the object properties is Unknown and the scaling is 72 dpi.

    If I import via File | Import | File, then the set DPI value is kept correctly.

    Same as importing into an existing anchored frame.

    So, with File > Import > File into the text flow or into an anchored frame and setting dpi during import to 300 dpi, FrameMaker imports the image correct at 300 dpi with the correct dimension of 52 × 39 mm. The scaling is given as 24%, which might be a little bit confusing at first. However, the scaling that FrameMaker gives in the object properties is the scaling compared to the image size at 72 dpi.

    For the Insert > Image route, FrameMaker imports the image always at 72% (= 100%). When importing an image with this route into an anchored frame, FrameMaker does not scale down the image if it is bigger than the anchored Frame. When importing an image with this route into the text flow, FrameMaker checks if the image is bigger than the frame (at the default import size of 72 dpi). If so, FrameMaker scales down the image until it fits into the new anchored Frame (maximum width = text flow/column width minus anchored frame padding).

    Again, importing into table cells is a different thing. I will check this with development. Looks like a bug to me.