Skip to main content
Inspiring
June 8, 2020
Answered

RH2017: Images getting stretched in output

  • June 8, 2020
  • 21 replies
  • 693 views

Hi

I am working on RH2017 and I have come across a very weird issue. 

I am using SnagIt to capture images and then adding to the topics via Insert Image. I also have a style created for my images, width – 801px and height - 435px. Once I apply the style and generate a Responsive HTML output, the images get stretched.

If I insert the image and do local formatting by inserting the same width and height given above and on generating an ouput the images stay intact.

Is there something I am doing wrong?

Does RH2017 does not render the expected output based on image styles?

Is it because I am using SnagIt to capture images. Do I need to use Robohelp’s screen capture tool?

    This topic has been closed for replies.
    Correct answer Amebr

    What if you disable it though? Do you see the image more like you expect?

    21 replies

    Peter Grainge
    Community Expert
    Community Expert
    June 9, 2020

    Send me the new single topic project. See Contact page on my site and send the project as instructed there. Do make sure you include a link to this thread and please do not email the project direct.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Inspiring
    June 9, 2020

    Created a new project with one topic and image. The image still gets stretched in the output when an image style is applied.

    Peter Grainge
    Community Expert
    Community Expert
    June 9, 2020

    Can you recreate this in a new project with just one topic and one image? Sometimes doing that nails the problem. If not, I'll take a look at that project. Post back when you have tried in a new project.

     

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Inspiring
    June 9, 2020

    No luck, the issue still persists. I changed Master Page to CSS in the Responsive HTML 5 settings but the image still stretch. Another issue I noticed is once I select the CSS instead of the Master Page in Responsive HTML 5, the ouput for some reason does not pick the my style.

    Peter Grainge
    Community Expert
    Community Expert
    June 8, 2020

    Try without using the master page to see if that fixes the problem. I'm not suggesting that as the answer, just to troubleshoot.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Inspiring
    June 8, 2020

    Yes, it does.

    Peter Grainge
    Community Expert
    Community Expert
    June 8, 2020

    Does the Master Page have the same CSS applied to it as the topics? Make sure it does.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Inspiring
    June 8, 2020

    I am using a Master Page to get the breadcrumbs and a CSS thats got all my styles. I just looked at the Responsive HTML5 settings and in Content > Apply to All Topics, the Master Page is selected. Do you think this might be the issue?

    If I remove the Master Page and select CSS, is there any other way to get the breadcrumbs on the online output?

    Peter Grainge
    Community Expert
    Community Expert
    June 8, 2020

    So source is OK but output is not. Are you using a master page or selecting a different CSS when you generate?

     

    I think it's likely you are using one and that's where the problem is. Take a look and post back.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Inspiring
    June 8, 2020

    Hi Peter

    The Topic Editor and the Topic Preview shows the image size as per my need. But when i generate the ouput, it stretches.

    Yes, all images do stretch in the output. The width gets stretched and the height remains the same. It becomes more evident when I hide the TOC panel view in the output by clicking Expand/Collapse.