Coder Social home page Coder Social logo

node-pngcrush's People

Contributors

2betop avatar hefangshi avatar oxund avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-pngcrush's Issues

node 版本支持问题

release 的时候先后出现以下问题,不知道要选择哪个版本的node才能兼容两者

[WARNI] node-pngcrush does not support your node v5.10.0
[WARNI] csssprites does not support your node v4.4.2

多release 一次就这样了

[ERROR] load plugin [fis3-parser-node-sass] config error : Thelibsassbinding was not found in /usr/local/lib/node_modules/fis3-parser-node-sass/node_modules/node-sass/vendor/darwin-x64-46/binding.node This usually happens because your node version has changed. Runnpm rebuild node-sassto build the binding for your current node version..

试过4.0.0,3.x都有报错,不能发布成功,已经不知道要怎么弄了

node-pngcrush does not support your node v0.13.0-pre

node-pngcrush 不支持 node v0.13.0

arther@company-caiweiguo:~/study/fis-quickstart-demo$ fis release --optimize

 Ω ...
 [WARNI] node-pngcrush does not support your node v0.13.0-pre, report it to https://github.com/xiangshouding/node-pngcrush/issues
..................... 4451ms

请问压缩质量怎么控制

请问压缩质量怎么控制的,我阅读了你的代码,没找到控制压缩比例,分辨率的逻辑。求指导。谢谢

build node-pngcrush

require

  • node-gyp

    npm install -g node-gyp
    
  • vsbuild (for windows)

  • gcc / make (for *nix)

  • python

step

  1. clone source code

    git clone https://github.com/xiangshouding/node-pngcrush.git
    
  2. build

    if node <= 0.12.7

    cd node-pngcrush
    node-gyp rebuild
    

    if node >= 4.0.0

    cd node-pngcrush
    git checkout node-v4.0.0
    node-gyp rebuild
    

到底支持哪些版本?

我这里提示node-pngcrush does not support your node v5.7.1,看到issue列表中好多用户都问类似的问题,不支持的版本有很多,但是支持的版本有哪些?没看到

同步 npm 版本

npm 0.4.0 版本没有 win32/x64/8.0.0 这个文件夹。

直接拷 github 的项目才能用

v6.0.0 addon有问题

Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /root/.nvm/versions/node/v6.10.0/lib/node_modules/scrat/node_modules/node-pngcrush/bindings/linux/x64/6.0.0/addon.node)

如上,依赖库找不到

能不能简单介绍下这个图片压缩的优势

比如压缩率, 速度, 效率相对于其它 png 压缩库有什么优势,另外我发现它不支持自定义压缩比例。不好好介绍一下它的优势的话就作为 fis 的默认插件,会不会给人一种钦定的感觉啊

安装出错

> [email protected] install /usr/local/lib/node_modules/pc-sub/node_modules/fis3/node_modules/fis-spriter-csssprites/node_modules/images
> echo "Hello, World."

Hello, World.
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "[email protected]"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3

npm ERR! shasum check failed for /tmp/npm-29024-b2ef44f4/registry.npmjs.org/node-pngquant-native/-/node-pngquant-native-0.2.2.tgz
npm ERR! Expected: 785d5a391a8f82d8a7ea59472345cbb6a11416fd
npm ERR! Actual:   a6ca4543f1e65231c51c947730cf2d42e99f9c85
npm ERR! From:     https://registry.npmjs.org/node-pngquant-native/-/node-pngquant-native-0.2.2.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/cenjinchao/pc/works/2015-fequan/npm-debug.log

pngcrush caught libpng error:Not a PNG file..

报错信息:
While measuring IDATs in /data/web_doc_root/itouzi.com/it0 pngcrush caught libpng error:
Not a PNG file..

网上查询说是因为.png 图片并不是标准的png图片,但是项目中的图片是在太多,请问 我怎样才能定位到是哪张 .png 图片有问题呢?
谢谢~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.