usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34.58k stars 2.49k forks source link

picture thumbnail broken #4135

Closed Luftwaft closed 5 days ago

Luftwaft commented 1 week ago

Describe the bug

image Version: v0.23.0 some of the pictures thumbnail dont show correctly

Steps to reproduce

no steps

The version of Memos you're using.

Version: v0.23.0

Screenshots or additional context

No response

RoccoSmit commented 1 week ago

Are the images still broken after a page refresh?

Luftwaft commented 6 days ago

yes,tried refreshing and clearing cookies,and switch to other browser,it just didnt work

RoccoSmit commented 6 days ago

Couple questions:

Luftwaft commented 5 days ago

1、after f12,there're two in concle like the image below,but no network error image 2、image are stored in db 3、it loads by full size 4、reupload one of the images,it works well on web.here the container log :


2024/11/20 02:25:08 INFO OK method=/memos.api.v1.MemoService/ListMemos
2024/11/20 02:24:54 INFO OK method=/memos.api.v1.ResourceService/GetResourceBinary
2024/11/20 02:24:46 INFO OK method=/memos.api.v1.ResourceService/CreateResource
2024/11/20 02:24:34 INFO OK method=/memos.api.v1.MemoService/ListMemos
2024/11/20 02:24:34 INFO OK method=/memos.api.v1.ResourceService/GetResourceBinary
2024/11/20 02:24:34 INFO OK method=/memos.api.v1.UserService/GetUserSetting
2024/11/20 02:24:34 INFO OK method=/memos.api.v1.WorkspaceSettingService/GetWorkspaceSetting
2024/11/20 02:24:07 INFO OK method=/memos.api.v1.InboxService/ListInboxes
2024/11/20 02:24:07 INFO OK method=/memos.api.v1.MemoService/ListMemos
2024/11/20 02:24:33 INFO OK method=/memos.api.v1.WorkspaceService/GetWorkspaceProfile
2024/11/20 02:24:34 INFO OK method=/memos.api.v1.AuthService/GetAuthStatus```
RoccoSmit commented 5 days ago

It looks like something went wrong while creating the thumbnails. You can delete the thumbnails from the .thumbnail_cache folder that is located in the folder you specified while creating your docker container. The thumbnail will then get regenerated when you view the image again.

image

The thumbnail name aligns with the original image id e.g. A image with the path /file/resources/4/image.png?thumbnail=true will have a matching thumbnail named 4.png

Luftwaft commented 5 days ago

yes,it works,thanks