-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
[Bug]: Images not being rendered properly after 0.19.6 upgrade #5196
Comments
@db0 Mentioning you in case you might be able to provide information on this image related bug that I can't. |
Can you also provide the relevant link? |
this is probably at least partially the same issue that was reported in LemmyNet/lemmy-ui#2805 already when it comes to thumbnail generation. the post in the screenshots is https://lemmy.dbzer0.com/post/31254852. looking at the API in this case, https://lemmy.dbzer0.com/api/v3/post?id=31254852, it shows the content type as as the response is neither html (which could reference an image in metadata) nor an image format in the content type this leads to no thumbnail generation. related code: lemmy/crates/api_common/src/request.rs Lines 122 to 180 in 467163a
|
Sure here you go: I also just found this one while browsing [email protected]: Seems to be completely random which posts it happens to. |
I wasn't sure if they are the same one, since that one seemed like it was for link posts with a thumbnail, but this is for image posts which aren't being detected as images at all. |
Agree with @Nothing4You, seems there is nothing we can do (other than contacting the image hoster about adding proper content headers).
This one works fine on a test server, so most likely there was a network error when the thumbnail was generated. |
Civitai is open sourced on github, so someone could open an issue about it? |
@Nothing4You thanks for mentioning. The issue LemmyNet/lemmy-ui#2805 happens for every newly created post, either via api or via gui. i hope it can be moved to this repository |
But it also seems to be happening with other Lemmy instances since the second post URL was a pict-rs link from Lemmy.world |
Question, do you guys think that the effects of this bug will persist after the fix, or do you think it'll be retroactively fixed? I hope it's the latter otherwise a lot of content is going to be messed up by this. @db0 I don't think we really need to report this to civitai, this is a Lemmy problem, Lemmy is deciding images are links and not images, and Lemmy shouldn't be doing this. The change that caused this in 0.19.6 is wrong, it shouldn't be like this, if a post ends as an image it should attempt to render as an image. All the instances which haven't upgraded don't have this issue, even on posts with the affected civitai links. |
thumbnails that are never generated will not be created later on. posts do not get modified for metadata after initial creation and metadata generation.
if civitai claims images are just random binary (via content type header) this is up to civitai to fix. in this specific case the url ends with an image type file suffix, but that doesn't mean much on the internet. lemmy could probably add some logic for mime type sniffing as fallback, but websites should be expected to provide an appropriate content type in the response. |
Ive tested the civitai image with 0.19.5 and it also doesnt generate a thumbnail. However lemmy-ui does load the full image with 864 × 1440 px and displays it as thumbnail, which means its related to LemmyNet/lemmy-ui#2797. Anyway using such a huge image as thumbnail is a waste of resources so it makes no sense. |
Not in agreement, if content ends with an image file suffix it's almost always intended to be an image. I've never seen content that wasn't an image distributed as .png, .jpg, .bmp, etc. and if that did happen and was posted to Lemmy for whatever reason, it just wouldn't render a usable image.
I'm more talking about all the Lemmy image posts like these which are just randomly broken after the update. I'm assuming that by what you're saying that those probably will not be fixed in the update. Since it's affecting more than just civitai images it's more than just a Civitai problem. |
All posts with a youtube link created with v0.19.6 & v0.19.7 have no thumbnail ( LemmyNet/lemmy-ui#2805 ) |
That 196 post seems unrelated to the Civitai problem and genuinely a Lemmy issue. I took a look at that post on some > 0.19.5 instances and it's very hit and miss Works on: Doesn't work on: In fact, both aussie.zone and midwest.social have a lot of broken image posts. The ones with the broken posts don't have a |
@DraconicNEO read our code of conduct and please do not downthumb people for trying to help answer questions. |
I downthumbed because I thought the suggestion seemed unhelpful, but I apologize if I made a mistake. |
Honestly it seems like whatever change was made to change whether posts are deemed as images or not, seems like a case of fixing what isn't broken and inadvertently breaking what was already working before without having to do anything extra.
Kind of feel like we should maybe have a fallback to the old way of doing it, or allow image posts to be manually declared as such with a warning if the image request data isn't present. To put it better, since many people here are likely visual learners. Is a hell of a lot better than this: In other words, a broken image that isn't valid being displayed as an image which can't be rendered is better than an image not being recognized and ruining the post for others who just can't see or understand it. |
@DraconicNEO open up an issue on the civitia repo, that they're serving the wrong content type for their images. We merged a fix above, but there's some debate about whether the hack we merged above is appropriate. |
Great to hear, I already opened an issue in their repo civitai/civitai#1496 hopefully they'll get on that. |
… (LemmyNet#5212)" This reverts commit 63ea99d.
… (LemmyNet#5212)" This reverts commit 63ea99d.
… (LemmyNet#5212)" This reverts commit 63ea99d.
Requirements
Summary
After the recent upgrade to 0.19.6 on my Home instance it appears certain image posts are no longer rendering the image and instead are treating it as a link, very annoying bug for sure.
Steps to Reproduce
Technical Details
Not an Admin, can't provide logs.
Here's a screenshot though:
What it should look like:
Version
BE 0.19.6
Lemmy Instance URL
lemmy.dbzer0.com
The text was updated successfully, but these errors were encountered: