Preview of Image(s) in HTML Source File in Trados Studio/Trados Team Does Not Work

Hi, 

I'm having problem previewing images when working with my HTML file in Trados Studio. For example, the file is like this:

Fullscreen
1
2
3
4
5
6
7
8
<html>
<head>
</head>
<body>
<p>The purpose of this <span style="font-family: 'courier new', courier, monospace;">file</span> is to test the image preview.</p>
<p><br><img src="www.trados.com/.../rws-com-trados-persona-corporation_tcm234-211045.jpg width="1168" height="716"></img></p>
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

When I preview the file in Trados Studio, it shows:

Screenshot of Trados Studio showing HTML code with a missing image preview in the editing pane.

It's the same in Trados Team when I preview the file in Online Editor:

Screenshot of Trados Online Editor with the HTML document open, also missing the image preview in the editing area.

By the way, the image is one of yours I got on your website:

rws-com-trados-persona-corporation_tcm234-211045.jpg (3000×707)

So it should not be the problem with the image. 

Please suggest, thank you.



Generated Image Alt-Text
[edited by: RWS Community AI at 7:16 AM (GMT 0) on 15 Jan 2025]
emoji
Parents
  •  

    You need to correct your html... your html won't preview in a browser either.  Try this version:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    <html>
    <head>
    </head>
    <body>
    <p>The purpose of this <span style="font-family: 'courier new', courier, monospace;">file</span> is to test the image preview.</p>
    <p><br><img src="https://www.trados.com/media/images/rws-com-trados-persona-corporation_tcm234-211045.jpg?v=20241213091214" width="1168" height="716"></p>
    </body>
    </html>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Hi   , I tried your file, yet preview still didn't show the image, neither in Trados Team nor in Trados Studio:

    Screenshot of Trados Online Editor with a segment selected showing HTML code and a missing image preview. A separate Notepad++ window displays the HTML source code.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 9:44 AM (GMT 0) on 15 Jan 2025]
  •  

    It works for me :-)

    Screenshot of Trados Studio interface showing a segment with a warning symbol, indicating an issue with the text 'The purpose of this file is to test the image preview.'

    Screenshot of Trados Studio's preview pane with the message 'The purpose of this file is to test the image preview' displayed alongside a graphic of abstract shapes.

    Did you make changes to the parser rules?  Are you using some specific filetype?  What version of Trados Studio are you using.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 10:24 AM (GMT 0) on 15 Jan 2025]
  • Wow, interesting, I'm using Trados Studio 2024, I'm using HTML5, yes I have made some changes to the parser rules. 

    emoji
  •  , I think I know the reason, I made the attribute src translatable! Thank you so much, Paul!

    emoji
Reply Children
  •  

    I think I know the reason, I made the attribute src translatable!

    That would explain why you had 2 segments extracted, and I guess this also means that since that is also text it may change and as a result the preview would fail unless you had the image in the target segment.  Try copying the contents of your segment #2 into the target and see if the element works then?

    Aside from that I do think the preview should still work as long as there is an image available at whatever url you provide into the target segment.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji