Files
design-themes/theme_anelusia/views/snippets/s_key_images.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

46 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_key_images" inherit_id="website.s_key_images">
<!-- Layout -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc3" separator=" "/>
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_key_images_default_image_1/web_editor/geometric/geo_square_6.svg</attribute>
<attribute name="data-shape">web_editor/geometric/geo_square_6</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_key_images_default_image_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<xpath expr="(//img)[4]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_key_images_default_image_4/web_editor/geometric/geo_square_5.svg</attribute>
<attribute name="data-shape">web_editor/geometric/geo_square_5</attribute>
<attribute name="data-original-mimetype">image/webp</attribute>
<attribute name="data-file-name">s_key_images_default_image_4.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Texts -->
<xpath expr="//h2" position="replace" mode="inner">
Discover Our Latest Fashion Collection
</xpath>
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
Explore the Trends that Define Style
</xpath>
<xpath expr="//div[hasclass('col-lg-3')]//p[3]" position="replace" mode="inner">
A glimpse of elegance and comfort in every piece
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[2]//p[3]" position="replace" mode="inner">
Perfect outfits for every occasion
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[3]//p[3]" position="replace" mode="inner">
Quality that speaks for itself
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[4]//p[3]" position="replace" mode="inner">
Redefine your wardrobe with our latest styles
</xpath>
</template>
</odoo>