JJ_IA restored a backup on a test Discourse setup and encountered an issue where an image set to 50% resolution didn’t display in a post, though it appeared correctly when editing. The image only loaded after changing the resolution slightly. Gerhard suggested running rake posts:rebake_uncooked_posts, but the command returned 0 posts done. JJ_IA confirmed the backup was full (.tar.gz) with local uploads. The issue was ultimately resolved by clearing the browser cache in Chrome, as the image displayed correctly in Firefox. JJ_IA thanked Gerhard for the help.
Kind of an odd situation, but I restored a backup to see how it looked on a test setup of Discourse and an image in one of the posts that was sized at 50% looks like the below situation. I tried “rebuild html” but that did nothing. Strangely, if I change the resolution from 50% to ANYTHING else it works (e.g. 49%, 51%, etc) and shows up just fine in the post. I posted the html below. The image preview looks fine while editing but just won’t load??? So weird.
Did you see the following message at the end of the restore?
Posts will be rebaked by a background job in sidekiq. You will see missing images until that has completed.
You can expedite the process by manually running “rake posts:rebake_uncooked_posts”
Just to be clear – if I click on the image, it pops up but it won’t show embedded or whatever in the post unless I modify the resolution it was set at upon restore.
Just tried from another machine using Firefox instead of chrome and it comes up just fine. Had some weird caching going on with Chrome and was able to fix it with this…