Open JonnyWhatshisface opened 4 months ago
Confirmed that uploading files which are already webp does not exhibit this behavior.
I am also experiencing this issue. There is a lot of weirdness going on here. The cover image on the blog post only appears when the contributor user of the blog post is logged in. However, the blog post cover image turns into a camera icon for public users.
I found another solution. It seems that the system fails to make the converted webp images into public document.
When we go to Settings >> Technical >> Database Structure | Attachments.
Then select the converted webp image file, generally named: Blog Post ...
,
then check the Is public document
section.
This will make the cover image to be shown.
Now I'm facing this issue. How can you solve it? Please suggest me your solution.
I found another solution. It seems that the system fails to make the converted webp images into public document.
When we go to Settings >> Technical >> Database Structure | Attachments. Then select the converted webp image file, generally named:
Blog Post ...
, then check theIs public document
section.This will make the cover image to be shown.
I have the same problem with Odoo 17 Enterprise Odoo Server 17.0+e-20240910. The checkbox for Public was not there. I have now checked the box, but unfortunately there has been no change. I have uninstalled and installed and updated the Blog app several times, but unfortunately no image appears in the blog. Unless you log in to Odoo, then all the images are there.
I found another solution. It seems that the system fails to make the converted webp images into public document.
When we go to Settings >> Technical >> Database Structure | Attachments. Then select the converted webp image file, generally named:
Blog Post ...
, then check theIs public document
section.This will make the cover image to be shown.
That was the solution, but just checking the box is not enough. You then have to restart Odoo and then the images will be displayed.
I'm having this issue now too in v16 Enterprise, and it seems out of the blue. Gotta say, as an art website, I upload a lot of images. Having to dig around the database and then restart the server every time I upload is not a long-term viable solution. Was this fixed in v18? Is it worth the upgrade?
I'm having this issue now too in v16 Enterprise, and it seems out of the blue. Gotta say, as an art website, I upload a lot of images. Having to dig around the database and then restart the server every time I upload is not a long-term viable solution. Was this fixed in v18? Is it worth the upgrade?
I found another workaround, but haven't tried it in version 16 like you have, mine is in 17. I'm also not sure if version 18 has fixed this issue.
So, the solution is to upload the image file that is already in .webp format. Then, the webp image will be able to immediately appear / be used in the blog post.
Odoo Version
Steps to Reproduce
Blog post cover image is unable to be viewed once set/saved if image format is not already webp (conversion process seems to break it).
When editing, image is visible when added/uploaded in media library. But once clicking save, it is blank:
Setting blog cover image also results of duplication of image in the media library (same image showing up twice).
If selecting an image that already exists in the media library, that image is also duplicated. For example:
Duplication looks to be visible from the filestore - files with size of 0bytes showing up. For example:
However, images inserted in to the blog using an image block in the blog content do not exhibit this behaviour - nor do any website page images. The issue seems to only effect the cover for blog entries.
Looks to be related to webp conversion introduction. The webp is accessible via directly opening it in the browser, but is not visible in the cover of blog entries.
Expected Behaviour: Images which are not already webp format that are uploaded and set on the cover will not duplicate themselves in the media, will not generate 0byte files in the filestore and will be visible on the cover upon saving.
Log Output
No response
Support Ticket
No response