Skip to content

Commit a8129bd

Browse files
committed
[REF] theme_*: 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
1 parent b4c5bea commit a8129bd

File tree

2,451 files changed

+1514
-1514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,451 files changed

+1514
-1514
lines changed

theme_anelusia/__manifest__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@
3232
'views/new_page_template.xml',
3333
],
3434
'images': [
35-
'static/description/anelusia_description.jpg',
36-
'static/description/anelusia_screenshot.jpg',
35+
'static/description/anelusia_description.webp',
36+
'static/description/anelusia_screenshot.webp',
3737
],
3838
'images_preview_theme': {
39-
'website.s_banner_default_image': '/theme_anelusia/static/src/img/snippets/s_banner.jpg',
40-
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.jpg',
41-
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.jpg',
42-
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.jpg',
43-
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.jpg',
44-
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.jpg',
45-
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.jpg',
46-
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.jpg',
47-
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.jpg',
39+
'website.s_banner_default_image': '/theme_anelusia/static/src/img/snippets/s_banner.webp',
40+
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.webp',
41+
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.webp',
42+
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.webp',
43+
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.webp',
44+
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.webp',
45+
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.webp',
46+
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.webp',
47+
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.webp',
4848
},
4949
'configurator_snippets': {
5050
'homepage': ['s_text_cover', 's_images_wall', 's_color_blocks_2', 's_references',
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

theme_anelusia/views/images_content.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,37 @@ Check in primary_variables.scss, theme.scss and theme_common's mixins.scss -->
66
<record id="image_content_02" model="theme.ir.attachment">
77
<field name="key">theme_common.image_content_02</field>
88
<field name="name">theme_common.image_content_02</field>
9-
<field name="url">/theme_anelusia/static/src/img/content/content_img_02.jpg</field>
9+
<field name="url">/theme_anelusia/static/src/img/content/content_img_02.webp</field>
1010
</record>
1111
<record id="image_content_03" model="theme.ir.attachment">
1212
<field name="key">theme_common.image_content_03</field>
1313
<field name="name">theme_common.image_content_03</field>
14-
<field name="url">/theme_anelusia/static/src/img/content/content_img_03.jpg</field>
14+
<field name="url">/theme_anelusia/static/src/img/content/content_img_03.webp</field>
1515
</record>
1616
<record id="image_content_07" model="theme.ir.attachment">
1717
<field name="key">theme_common.image_content_07</field>
1818
<field name="name">theme_common.image_content_07</field>
19-
<field name="url">/theme_anelusia/static/src/img/content/content_img_07.jpg</field>
19+
<field name="url">/theme_anelusia/static/src/img/content/content_img_07.webp</field>
2020
</record>
2121
<record id="image_content_09" model="theme.ir.attachment">
2222
<field name="key">theme_common.image_content_09</field>
2323
<field name="name">theme_common.image_content_09</field>
24-
<field name="url">/theme_anelusia/static/src/img/content/content_img_09.jpg</field>
24+
<field name="url">/theme_anelusia/static/src/img/content/content_img_09.webp</field>
2525
</record>
2626
<record id="image_content_10" model="theme.ir.attachment">
2727
<field name="key">theme_common.image_content_10</field>
2828
<field name="name">theme_common.image_content_10</field>
29-
<field name="url">/theme_anelusia/static/src/img/content/content_img_10.jpg</field>
29+
<field name="url">/theme_anelusia/static/src/img/content/content_img_10.webp</field>
3030
</record>
3131
<record id="image_content_11" model="theme.ir.attachment">
3232
<field name="key">theme_common.image_content_11</field>
3333
<field name="name">theme_common.image_content_11</field>
34-
<field name="url">/theme_anelusia/static/src/img/content/content_img_11.jpg</field>
34+
<field name="url">/theme_anelusia/static/src/img/content/content_img_11.webp</field>
3535
</record>
3636
<record id="image_content_12" model="theme.ir.attachment">
3737
<field name="key">theme_common.image_content_12</field>
3838
<field name="name">theme_common.image_content_12</field>
39-
<field name="url">/theme_anelusia/static/src/img/content/content_img_12.jpg</field>
39+
<field name="url">/theme_anelusia/static/src/img/content/content_img_12.webp</field>
4040
</record>
4141

4242
</odoo>

0 commit comments

Comments
 (0)