-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
期望增加图片WEB直传方式(Expect to add web direct transmission mode) #2565
Comments
Title: I hope to add a direct transmission method of pictures via WEB, change the logic of comments, and change the logic of splicing suffixes and suffixes of pictures. Is your feature request related to a problem?
Describe the solution you'd like
---I am the dividing line of sadness--- I know that open source projects require very careful design, and I also understand the various trade-offs that open source software authors face. Regardless of whether it is adopted or not, I hope all authors will work hard to make memos more easy to use and powerful. Memos is already an indispensable part of my personal Weibo and notes. Additional contextNo response |
To implement this feature, an S3 Bucket is necessary. We may use a driver like we do with database |
阿里云的OSS和腾讯云的COS都是兼容S3的云存储,也是目前使用最广泛的云存储之一。 Alibaba Cloud's OSS and Tencent Cloud's COS are both S3 compatible cloud storage and are among the most widely used cloud storage at present. 期待! |
let me know if this is the good feature, I can support this for AWS s3 and MinIo. |
If @boojack thinks this is worth doing, I'll take it, you might need to create a sperate PR for support Ali Cloud or Tencent Cloud if default AWS implementation now working for you. |
This issue is stale because it has been open 14 days with no activity. |
This issue was closed because it has been stalled for 28 days with no activity. |
期望增加图片WEB直传方式(疯狂期待)
、更改评论的逻辑、更改图片前后缀拼接逻辑为相对地址Is your feature request related to a problem?
1. 现在图片传输慢,希望能够增加图片WEB直传方式
2. 现在评论也是一条memo,导致使用api获取memo数据时还要判断parent来区分,期望评论逻辑是否可以再斟酌3. 现在存储的前缀后缀设置后,直接拼接死在external_link字段里,导致使用非常不便,期望拼接功能逻辑可以再斟酌Describe the solution you'd like
现在传图的逻辑是经过服务器中转,带宽直接限制了图片传输速度,国内机器带宽是最昂贵的,一般部署memos的机器带宽在3Mbps左右,图片数据流从本地传输至服务器用时太久了,从服务器传输到云存储又要双倍甚至更多的时间,建议能参考阿里OSS和腾讯COS的Web直传方式,参考资料:OSS Web直传最佳实践 ,使用此方式,就可以达到超极速上传,传输完成拿到资源地址回写服务器数据库,同时直传采用预签名的方式也是安全可靠的。
刚才翻阅issues,发现也有人提出了类似的建议 #2141
2. 期待评论逻辑重新设计:因为memos本身的前端界面设计适合的场景不多,并且有很多体验可以提升的地方,所以现在更多的人是使用api方式来获取数据,渲染到自己设计的html页面中,但是现在评论功能推出后,很多人页面上突然评论数据也展示成为了一条memos,查看数据库后发现,原来一条memo的评论竟然也是一条memo,通过关联关系捆绑,很不解为何评论的逻辑是这样设计的,人们并不期望评论和memo在是平级关系,更重要的是,这样的设计是否违反了数据库设计范式(一个字段有多重类别含义)?这一点我不太能确定,还是期望大佬能够再斟酌考虑是否有改变设计的必要。
3. 期待图片前后缀不拼接写死在external_link:现在的存储设置中,可以设置图片URL的前缀和后缀,但是前缀和后缀最后和上传地址一起拼接写死在了external_link字段中,这导致几个问题:
(1)前缀写死的问题:更换图床域名或图床厂商时,除了在数据库执行replace之外无法用其他方式设置,我看有人也提了类似的issue #2419
(2)后缀写死的问题(严重):
使用云存储的图片动态裁切,例如腾讯云的万象功能可以直接在图片URL后面加参数来放大缩小图片和质量。
如果在memos中添加了URL统一后缀裁切参数[缩小图片质量到15%],那么在访问memos的时候,所有的图片、包括点击后的放大图,都是15%质量的低质量缩略图片。
而如果不加URL统一裁切参数后缀,那进入memos列表页面会由于大量加载原图而浏览器或手机卡死!
期望达到【缩略图状态使用带后缀的图片地址,点击图片放大查看时,使用不带后缀的原图地址】,所以是否考虑将设置中的URL前缀后缀使用一个单独的字段或json保存起来,在展示数据的时候,动态的去判断是否要追加这些URL前后缀。
------------------我是难过的分界线------------------
我深知开源项目是需要非常谨慎的设计的,也理解开源软件作者各种权衡的不易。
以上只是我在使用过程中比较痛苦的几点,当然最重要的还是第一点图片传输经服务器中转十分缓慢的问题。
无论是否采纳,都期待各位作者加油,能够让memos更加易用和强大,Memos已经是我个人自建微博及笔记,不可或缺的一部分了。
Additional context
No response
The text was updated successfully, but these errors were encountered: