Files
design-themes/theme_clean/views/snippets/s_image_text.xml
T
Serge Bayet (seba) e78bd3fbbb [REF] website: convert default images to WebP format
This commit switches the default image format from JPEG to WebP for all
design-themes images. WebP offers superior compression compared to JPEG,
resulting in smaller file sizes and faster website loading times.
Additionally, this change helps avoid warnings from performance tools
regarding image optimization.

See also: odoo/odoo#168862

task-3167548

closes odoo/design-themes#805

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-07-01 06:52:49 +00:00

24 lines
1008 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_text" inherit_id="website.s_image_text">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc1 pt48 pb72" remove="pt80 pb80" separator=" "/>
</xpath>
<!-- Add space after title -->
<xpath expr="//h2" position="after">
<p><br/></p>
</xpath>
<!-- Image -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_image_text_default_image/web_editor/pattern/pattern_labyrinth.svg?c1=o-color-3&amp;c2=o-color-5&amp;c4=o-color-1</attribute>
<attribute name="data-shape">web_editor/pattern/pattern_labyrinth</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-file-name">image_content_20.svg</attribute>
<attribute name="data-shape-colors">o-color-3;o-color-5;;o-color-1;</attribute>
</xpath>
</template>
</odoo>