#1691 - Image-awareness within truncation code

Identifier #1691
Issue type Feature request or suggestion
Title Image-awareness within truncation code
Status Completed
Handling member Chris Graham
Addon core
Description The summarisation/truncation symbol (e.g. $TRUNCATE_LEFT) works on a character length basis, so images presence can result in excess space usage.

The best solution would be to make an equivalency calculation for images, based on estimating the number of characters that would fit across the image.

The code already is HTML-aware, in that it doesn't count HTML code towards the truncation limit. Picking up on embedded images could be integrated into the scanning too.

In much less time we could just hard-code it for a certain number of images, but this is problematic - for example, emoticons and very large external images, would count the same.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated