-
Notifications
You must be signed in to change notification settings - Fork 28.4k
[REF] website: convert default images to WebP format #168862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[REF] website: convert default images to WebP format #168862
Conversation
f95f5b2
to
6a56fc7
Compare
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
10eb820
to
f4a1faf
Compare
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
132d01d
to
a286364
Compare
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SergeBayet Once you can, this will probably need a rebase too, on top of my comments 🙏 Don't hesitate to push for this kind of PR to be merged quickly. It's partly my fault this lingered in the Testing BE column for this long (even though anyone could have merged it) but... 😉
# Currently we're using Pillow 9.0.1, and this version doesn't handle webp | ||
# We should upgrade to version >=10.1.0. Thus this workaround. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can just remove this comment, or add it next to the get_webp_size definiton maybe.
if record.mimetype == "image/webp": | ||
# Currently we're using Pillow 9.0.1, and this version doesn't handle webp | ||
# We should upgrade to version >=10.1.0. Thus this workaround. | ||
width, height = tuple(str(size) for size in get_webp_size(image)) | ||
else: | ||
img = binary_to_image(image) | ||
width, height = tuple(str(size) for size in img.size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this related to the work you are doing in this commit? I am not sure what this is about but it feels like a fix that maybe should target stable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take care of that as soon as possible. Thanks for the review :) |
a286364
to
c5ce5d4
Compare
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
c5ce5d4
to
d367734
Compare
d367734
to
9fba1b4
Compare
@qsm-odoo |
robodoo override=ci/style |
6d87a60
to
721f785
Compare
89f46aa
to
ead9905
Compare
@qsm-odoo PR is ready to be reviewed. Thanks :) |
707cd6e
to
7abcae8
Compare
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
7abcae8
to
4dace49
Compare
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
bb0e873
to
f17006f
Compare
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
This commit switches the default image format from JPEG to WebP for all website 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. task-3167548
f17006f
to
bb8ba42
Compare
This commit switches the default image format from JPEG to WebP for all website 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/design-themes#805
task-3167548