Files
design-themes/theme_real_estate/views/snippets/s_text_image.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

27 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_text_image" inherit_id="website.s_text_image">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Are you thinking of selling?
</xpath>
<!-- Paragraph -->
<xpath expr="//p[1]" position="replace" mode="inner">
Make an appointment for a free valuation of your property. We visit the property, advise you on a realistic asking price and we explain our way of working. <br/>
You can decide in all freedom whether or not you would like to work with us for the sale of your property.
</xpath>
<!-- Paragraph 2 -->
<xpath expr="//p[2]" position="replace" />
<!-- Image -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_text_image_default_image/web_editor/panel/panel_duo_step.svg</attribute>
<attribute name="data-shape">web_editor/panel/panel_duo_step</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_text_image.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
</template>
</odoo>