Files
design-themes/theme_orchid/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

31 lines
1.3 KiB
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_cc2 pb104" remove="pb80" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
The Orchid Concept
</xpath>
<!-- Paragraphs -->
<xpath expr="//p" position="replace" mode="inner">
<br/>
</xpath>
<xpath expr="//p[2]" position="replace" mode="inner">
From your local producer to your door, discover how we deliver our multiple sorts of flowers and bring you happiness.
</xpath>
<!-- Img -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_image_text_default_image/web_editor/composition/composition_mixed_1.svg?c1=o-color-2&amp;c2=o-color-2&amp;c5=o-color-5</attribute>
<attribute name="data-shape">web_editor/composition/composition_mixed_1</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_carousel_2.svg</attribute>
<attribute name="data-shape-colors">o-color-2;o-color-2;;;o-color-5</attribute>
</xpath>
</template>
</odoo>