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 Nov 14, 2024
1 parent 3da633d commit 0a23d68
Show file tree
Hide file tree
Showing 3,345 changed files with 2,563 additions and 2,564 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 13 additions & 13 deletions theme_anelusia/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@
'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.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_cover_default_image': '/theme_anelusia/static/src/img/snippets/s_cover.jpg',
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.jpg',
'website.s_image_text_default_image': '/theme_anelusia/static/src/img/snippets/s_image_text.jpg',
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.jpg',
'website.s_text_image_default_image': '/theme_anelusia/static/src/img/snippets/s_text_image.jpg',
'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_cover_default_image': '/theme_anelusia/static/src/img/snippets/s_cover.webp',
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.webp',
'website.s_image_text_default_image': '/theme_anelusia/static/src/img/snippets/s_image_text.webp',
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.webp',
'website.s_text_image_default_image': '/theme_anelusia/static/src/img/snippets/s_text_image.webp',
},
'configurator_snippets': {
'homepage': ['s_text_cover', 's_images_wall', 's_color_blocks_2', 's_references', 's_media_list','s_key_images', 's_call_to_action'],
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.
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.
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.
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.
Binary file removed theme_anelusia/static/src/img/snippets/uiface_5.jpg
Diff not rendered.
Binary file not shown.
Binary file removed theme_anelusia/static/src/img/snippets/uiface_6.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 0a23d68

Please sign in to comment.