GithubHelp home page GithubHelp logo

psd2html's Introduction

PSD2HTML

Turn the PSD picture into a HTML page

利用psd包把需要的psd格式图片解析,再通过psd提供的方法得到png图片和psd图片的数据结构(json) 拿到png和json文件以后,进行处理生成html,并且以rem布局 可以大量简化前端的工作量

安装 npm install

快速解析psd npm start npm run dev

正确解析psd方式 node app.js feifan.psd

压缩png图片 node imagemin.js feifanpsd

export : 用来存放导出的html css image app.js : 主要执行文件 imagemin.js     压缩图片的js .psd :       需要解析的图片

json.txt: psd图片的数据结构(非必要) output.png: 生成的png格式图片 templete.html: 模板文件 eslintrc.json   配置eslint package.json compression     提升性能使页面加载的文件变小加快请求,并不能压缩图片

¥{{

psd2html's People

Contributors

panamer avatar

Stargazers

 avatar

Watchers

James Cloos avatar

psd2html's Issues

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.