Skip to content

Commit

Permalink
[REF] theme_*: convert default images to WebP format
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SergeBayet committed Jun 25, 2024
1 parent b4c5bea commit a8129bd
Show file tree
Hide file tree
Showing 2,451 changed files with 1,514 additions and 1,514 deletions.
22 changes: 11 additions & 11 deletions theme_anelusia/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@
'views/new_page_template.xml',
],
'images': [
'static/description/anelusia_description.jpg',
'static/description/anelusia_screenshot.jpg',
'static/description/anelusia_description.webp',
'static/description/anelusia_screenshot.webp',
],
'images_preview_theme': {
'website.s_banner_default_image': '/theme_anelusia/static/src/img/snippets/s_banner.jpg',
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.jpg',
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.jpg',
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.jpg',
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.jpg',
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.jpg',
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.jpg',
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.jpg',
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.jpg',
'website.s_banner_default_image': '/theme_anelusia/static/src/img/snippets/s_banner.webp',
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.webp',
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.webp',
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.webp',
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.webp',
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.webp',
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.webp',
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.webp',
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.webp',
},
'configurator_snippets': {
'homepage': ['s_text_cover', 's_images_wall', 's_color_blocks_2', 's_references',
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/s_banner.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/s_cover.jpg
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/s_picture.jpg
Diff not rendered.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/s_popup.jpg
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/uiface_1.jpg
Diff not rendered.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/uiface_2.jpg
Diff not rendered.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/uiface_3.jpg
Diff not rendered.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/uiface_4.jpg
Diff not rendered.
Binary file not shown.
14 changes: 7 additions & 7 deletions theme_anelusia/views/images_content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ Check in primary_variables.scss, theme.scss and theme_common's mixins.scss -->
<record id="image_content_02" model="theme.ir.attachment">
<field name="key">theme_common.image_content_02</field>
<field name="name">theme_common.image_content_02</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_02.jpg</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_02.webp</field>
</record>
<record id="image_content_03" model="theme.ir.attachment">
<field name="key">theme_common.image_content_03</field>
<field name="name">theme_common.image_content_03</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_03.jpg</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_03.webp</field>
</record>
<record id="image_content_07" model="theme.ir.attachment">
<field name="key">theme_common.image_content_07</field>
<field name="name">theme_common.image_content_07</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_07.jpg</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_07.webp</field>
</record>
<record id="image_content_09" model="theme.ir.attachment">
<field name="key">theme_common.image_content_09</field>
<field name="name">theme_common.image_content_09</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_09.jpg</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_09.webp</field>
</record>
<record id="image_content_10" model="theme.ir.attachment">
<field name="key">theme_common.image_content_10</field>
<field name="name">theme_common.image_content_10</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_10.jpg</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_10.webp</field>
</record>
<record id="image_content_11" model="theme.ir.attachment">
<field name="key">theme_common.image_content_11</field>
<field name="name">theme_common.image_content_11</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_11.jpg</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_11.webp</field>
</record>
<record id="image_content_12" model="theme.ir.attachment">
<field name="key">theme_common.image_content_12</field>
<field name="name">theme_common.image_content_12</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_12.jpg</field>
<field name="url">/theme_anelusia/static/src/img/content/content_img_12.webp</field>
</record>

</odoo>
Loading

0 comments on commit a8129bd

Please sign in to comment.