-
Notifications
You must be signed in to change notification settings - Fork 94
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
node压缩图片 #36
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
安装
我选择的是
node for gm
库来处理图片上传后的压缩首先下载GraphicsMagick,建议把ImageMagick也下载了
GraphicsMagick
ImageMagick
注意如果要勾选
Install legacy utilities(e.g. convert)
选项,不然会出现Error: Could not execute GraphicsMagick/ImageMagick: gm “identify” “-ping” “-format” “%[EXIF:Orientation
当然安装完后可以在cmd输入gm来测试是否成功
这里注意的是win系统在装完要重启一次电脑,不然有可能出现
convert
跟系统命令冲突的错误再安装node的gm库
使用
GraphicsMagick
是从ImageMagick
中分离出来的加载GraphicsMagick(大小4.26 MB)
加载
ImageMagick
(大小26.2 MB),推荐ImageMagick
除了加载有区别,其他使用方式完全一样
The text was updated successfully, but these errors were encountered: