<commit_before>﻿SDL Tridion Contextual Image Delivery Template Building Block
=============================================================


## Overview

This module provides a Template Building Block (TBB) to allow users of SDL Tridion to make use of the Contextual Image
Delivery transformation service.

It modifies HTML image elements that include a `data-cid-rule` attribute to be processed by a locally configured image
transformation service. For example, the following image element:

    <img src="http://www.mysite.com/my/image.jpg" data-cid-rule="/scale/<tcdl:eval expression='browser.displayWidth'/>" />

would be modified to:<commit_msg>TCWD-1844 : Updated title<commit_after>﻿SDL Tridion Contextual Image Optimizer Template Building Block
==============================================================


## Overview

This module provides a Contextual Image Optimizer Template Building Block (TBB) that allow users of SDL Tridion to make
use of the Contextual Image Delivery transformation service.

It modifies HTML image elements that include a `data-cid-rule` attribute to be processed by a locally configured image
transformation service. For example, the following image element:

    <img src="http://www.mysite.com/my/image.jpg" data-cid-rule="/scale/<tcdl:eval expression='browser.displayWidth'/>" />

would be modified to:
{'fraction_non_alphanumeric': 0.1613382899628253, 'fraction_numerical': 0.002973977695167286, 'mean_word_length': 5.663366336633663, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5694429', 'n_tokens_mistral': 343, 'n_tokens_neox': 324, 'n_words': 138}