- Affected version
- 2.3.0 Beta 3
Steps to Reproduce
The post is displayed as before but the image is now WebP
Actual Result
The image is no longer being displayed / shows as a broken image (depending on the browser)
Checking the filesystem shows that the file (as noted in step 5) does not exist any longer
Of course users should not copy thumbnails into new posts via
On one of our forums for example this would affect several thousand posts.
- Make sure Image optimization is turned off
- Upload an Image attachment and insert it as thumbnail
- Copy the tumbnail URL
- Insert the thumbnail URL into in a new post via
[img]
- Note down the thumbnail UR, verify that the file exists in the filesystem and note down its path
- Turn on Image optimization
- Run
php cmd.php xf-rebuild:attachment-optimization
- Turn off any caching (Browser, Cloudflare, etc) or set to Bypass
- Reload the page containing the post created in step 4)
The post is displayed as before but the image is now WebP
Actual Result
The image is no longer being displayed / shows as a broken image (depending on the browser)
Checking the filesystem shows that the file (as noted in step 5) does not exist any longer
Of course users should not copy thumbnails into new posts via
[img]
- but they do that and it seems unaccaptable to me that those embedded thumbails will break when optimizing existing attachments.On one of our forums for example this would affect several thousand posts.
Last edited: