xiebruce / PicUploader

一个还不错的图床工具,支持Mac/Win/Linux服务器、支持压缩后上传、添加图片或文字水印、多文件同时上传、同时上传到多个云、右击任意文件上传、快捷键上传剪贴板截图、Web版上传、支持作为Mweb/Typora发布图片接口、作为PicGo/ShareX/uPic等的自定义图床,支持在服务器上部署作为图床接口,支持上传任意格式文件。
https://www.xiebruce.top/17.html
MIT License
1.19k stars 169 forks source link

方便添加md5验证吗? #43

Closed o1f closed 4 years ago

o1f commented 4 years ago

有时候重复上传图片...

xiebruce commented 4 years ago

可以,感谢建议!

xiebruce commented 4 years ago

@o1f 忘了说,md5验证图片重复功能已经添加了

o1f commented 4 years ago

我已经更新了...

xiebruce commented 4 years ago

@o1f 嗯,如果原来的记录不多,建议删除掉数据库文件(db/PicUploader.db),删掉再上传它会重新生成,新的字段类型什么的会好点!

由于同一张图片先后两次添加水印或压缩后的md5值会不同,所以只有设置为不压缩,不添加水印,才能识别出相同图片!

o1f commented 4 years ago

我重装了一下,md5不好使了 设置图,没开水印 https://cdn.jsdelivr.net/gh/o1f/stcResources@master/images/2020/05/31/Ts8CYigv.png 同一张图,与本地对比,大小一致, https://cdn.jsdelivr.net/gh/o1f/stcResources@master/images/2020/05/31/TRH40RcJ.png

xiebruce commented 4 years ago

@o1f 我查了一下,确实有bug,我修改一下,一会儿提交!

xiebruce commented 4 years ago

@o1f 好了,你更新一下就行了!

o1f commented 4 years ago

感谢~ 已正常~

xiebruce commented 4 years ago

@o1f 好的,正常就好!