For several versions ( was it 5.3? ) it is possible to publish Multimedia Components as variants. It means that in template code, we can choose to publish a representation of the MMComponent instead of the original. When unpublishing a MMComponent, all its variants are unpublished as well. A big use case of variants is publishing images with different resolutions. In Tridion, we keep only one version of the MMComponent (i.e. the one with highest resolution), and during publishing we can produce as many variants as we need via templating. This post details this use case. I wrote a TBB that performs the resize. The TBB takes 4 parameters: Width - the new width (in pixels) of the image (optional); Height - the new height (in pixels) of the image (optional); Aspect Ratio - Yes/No whether to keep the original's aspect ratio (boolean, optional); ImageTcmUri - the TcmUri of the image (mandatory); When Aspect Ratio = Yes , either Width or Height need be specified. Otherw
talk is cheap. show me the code.