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

PicGo GUI中成功安装,但是开启插件的transformer-compress之后图片始终无法上传 #4

Closed
fforkboat opened this issue May 9, 2020 · 1 comment

Comments

@fforkboat
Copy link

Hello~

PicGo 2.2,在GUI的插件页面安装不上,和这个朋友的情况一样:issue,所以用了你在他的issue中提到的命令行npm安装方法,然后就安装上了。

压缩选项使用的是默认的Imagemin

但是启用了transformer-compress选项之后,图片无法成功上传... (应该是要启用的⑧,因为我看你的Readme在CLI部分中说到了要配置这个,而且不启用的时候图像好像是没有被压缩的)
image

image

启用之后就会失败,所以我把错误日志找了一下,发现好像是少了一个module ‘image-size’:
image

我不太懂npm这一块,就直接在PicGo的目录把这个module安装了一下:npm install image-size --save,然后就不报这个错了,但是又有了新的错误...:
image

@juzisang
Copy link
Owner

juzisang commented May 9, 2020

删除 node_modules 目录,重新执行 npm install,如果安装没报错的话,应该就可以正常使用了。

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

2 participants