Commit 068dcc2
committed
[FIX] website: save cover images as webp
When webp support was introduced in [1], images set on covers were not
handled.
This commit automatically converts to webp the images that are uploaded
in covers using the website builder.
Steps to reproduce:
- Edit a blog post page.
- Upload a JPEG cover picture.
- Save.
=> The cover picture was still a JPEG.
[1]: odoo@0449fe8
task-3761728
closes odoo#169822
X-original-commit: f9c9d6c
Signed-off-by: Benjamin Vray (bvr) <[email protected]>1 parent 93cc424 commit 068dcc2
File tree
2 files changed
+55
-3
lines changed- addons/website/static/src
- components/wysiwyg_adapter
- js/editor
2 files changed
+55
-3
lines changedLines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
| 936 | + | |
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
963 | | - | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
964 | 989 | | |
965 | 990 | | |
966 | 991 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
2949 | 2954 | | |
2950 | 2955 | | |
2951 | 2956 | | |
| 2957 | + | |
2952 | 2958 | | |
2953 | 2959 | | |
2954 | 2960 | | |
| |||
2969 | 2975 | | |
2970 | 2976 | | |
2971 | 2977 | | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
2972 | 2981 | | |
2973 | 2982 | | |
2974 | 2983 | | |
2975 | 2984 | | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
2976 | 3003 | | |
2977 | 3004 | | |
2978 | 3005 | | |
| |||
0 commit comments