Skip to content
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

解释关于插件的部分问题(安装或上传遇到问题的记得来看看) #33

Closed
TNXG opened this issue Jul 20, 2022 · 0 comments

Comments

@TNXG
Copy link

TNXG commented Jul 20, 2022

因为这个包挺久没更新了,所以放些我解决问题的解决办法

安装sharp包失败

其实大部分人安装错误就是在这个地方

npm config set sharp_binary_host "https://npmmirror.com/binaries/sharp" 
npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips" 
npm install sharp
npm install picgo-plugin-watermark

上传出错

报错TypeError: Cannot destructure property 'position' of 'config' as it is undefined.
这应该是新版本PicGo更改了保存配置的api的问题
退回版本到PicGo2.3.0即可解决问题

或者你可以在配置文件里修改(没有尝试)
在配置json文件的第一个花括号(这玩意叫啥来着)添加

"picgo-plugin-watermark": {
    "fontFamily": "字体文件的绝对路径",
    "fontSize": "字体大小",
    "image": "水印图片路径",
    "minSize": "最小尺寸",
    "position": "水印位置",
    "text": "水印文本",
    "textColor": "水印颜色"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant