mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
e78bd3fbbb
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>
24 lines
1008 B
XML
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&c2=o-color-5&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>
|