Skip to content

Commit 1a99388

Browse files
committed
[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
1 parent 160c21c commit 1a99388

File tree

3,348 files changed

+2652
-2652
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,348 files changed

+2652
-2652
lines changed

theme_anelusia/__manifest__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@
6767
'views/new_page_template.xml',
6868
],
6969
'images': [
70-
'static/description/anelusia_description.jpg',
71-
'static/description/anelusia_screenshot.jpg',
70+
'static/description/anelusia_description.webp',
71+
'static/description/anelusia_screenshot.webp',
7272
],
7373
'images_preview_theme': {
74-
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.jpg',
75-
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.jpg',
76-
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.jpg',
77-
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.jpg',
78-
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.jpg',
79-
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.jpg',
80-
'website.s_cover_default_image': '/theme_anelusia/static/src/img/snippets/s_cover.jpg',
81-
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.jpg',
82-
'website.s_image_text_default_image': '/theme_anelusia/static/src/img/snippets/s_image_text.jpg',
83-
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.jpg',
84-
'website.s_text_image_default_image': '/theme_anelusia/static/src/img/snippets/s_text_image.jpg',
74+
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.webp',
75+
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.webp',
76+
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.webp',
77+
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.webp',
78+
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.webp',
79+
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.webp',
80+
'website.s_cover_default_image': '/theme_anelusia/static/src/img/snippets/s_cover.webp',
81+
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.webp',
82+
'website.s_image_text_default_image': '/theme_anelusia/static/src/img/snippets/s_image_text.webp',
83+
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.webp',
84+
'website.s_text_image_default_image': '/theme_anelusia/static/src/img/snippets/s_text_image.webp',
8585
},
8686
'configurator_snippets': {
8787
'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.
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)