Confluence import - graphics issue

This forum is for all Flare issues related to importing files or projects.
Post Reply
David Skoglund
Propeller Head
Posts: 14
Joined: Wed Dec 07, 2022 1:37 pm

Confluence import - graphics issue

Post by David Skoglund »

I imported a large amount of content from a Confluence wiki into Flare. I discovered a something annoying about how the import deals with certain graphics.

If the graphic hasn't been resized in Confluence, the graphic imports cleanly.

Resulting HTML code: <img loading="lazy" src="Images\Image.jpg" />

If the graphic has been resized in Confluence, the graphic imports with a lot of garbage that will cause problems.

Resulting HTML code: <img loading="lazy" src="Images\Image.jpg"" srcset="<wiki server link>/wiki/download/thumbnails/3405283391/Image.jpg"?version=1&amp;modificationDate=1687974537882&amp;cacheVersion=1&amp;api=v2&amp;width=680&amp;height=382 2x, <wiki server link>/wiki/download/thumbnails/3405283391/Image.jpg"?version=1&amp;modificationDate=1687974537882&amp;cacheVersion=1&amp;api=v2&amp;width=340&amp;height=191 1x" />

Note: I replaced the actual server address with <wiki server link> in the code above.

The srcset is especially problematic. It means even though the image is in your Flare project (source and output), the browser will try and load it from the Confluence wiki space. I didn't notice this because I'm always signed into the wiki as part of my job. I know I should have used a incognito browser to test, but I didn't.

If you look at the image properties in Frame everything looks good. You won't see any problems on the broken link report either. My solution to the problem was searching for that attribute in the source and hand editing hundreds of HTML files. Now I know to check for it if I import something from Confluence.

The loading="lazy" comes in with the import no matter what. I'm not a fan of that artifact either.
Post Reply