Skip to content

Commit 0a23d68

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 3da633d commit 0a23d68

File tree

3,345 files changed

+2563
-2564
lines changed

Some content is hidden

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

3,345 files changed

+2563
-2564
lines changed

theme_anelusia/__manifest__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@
6161
'views/new_page_template.xml',
6262
],
6363
'images': [
64-
'static/description/anelusia_description.jpg',
65-
'static/description/anelusia_screenshot.jpg',
64+
'static/description/anelusia_description.webp',
65+
'static/description/anelusia_screenshot.webp',
6666
],
6767
'images_preview_theme': {
68-
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.jpg',
69-
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.jpg',
70-
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.jpg',
71-
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.jpg',
72-
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.jpg',
73-
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.jpg',
74-
'website.s_cover_default_image': '/theme_anelusia/static/src/img/snippets/s_cover.jpg',
75-
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.jpg',
76-
'website.s_image_text_default_image': '/theme_anelusia/static/src/img/snippets/s_image_text.jpg',
77-
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.jpg',
78-
'website.s_text_image_default_image': '/theme_anelusia/static/src/img/snippets/s_text_image.jpg',
68+
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.webp',
69+
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.webp',
70+
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.webp',
71+
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.webp',
72+
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.webp',
73+
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.webp',
74+
'website.s_cover_default_image': '/theme_anelusia/static/src/img/snippets/s_cover.webp',
75+
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.webp',
76+
'website.s_image_text_default_image': '/theme_anelusia/static/src/img/snippets/s_image_text.webp',
77+
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.webp',
78+
'website.s_text_image_default_image': '/theme_anelusia/static/src/img/snippets/s_text_image.webp',
7979
},
8080
'configurator_snippets': {
8181
'homepage': ['s_text_cover', 's_images_wall', 's_color_blocks_2', 's_references', 's_media_list','s_key_images', 's_call_to_action'],
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.
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)