• Stars
    star
    185
  • Rank 208,271 (Top 5 %)
  • Language
    JavaScript
  • Created about 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Converting PSD files into mobile page

NPM version Build Status Coverage Status

Converting PSD files into mobile page

PSD 转换成移动端页面的工具。

功能

  • 自动导出图层的 PNG 文件;
  • 导出 PNG 用 hash 命名,避免出现重复素材;
  • 自动判断背景图;
  • 可以使用自定义模板。( 使用 jdists 编写)。

预制模板

  • tpl/page.html 标准模板
  • tpl/auto-bottom.html 自动计算需要居底的图层

效果

线上体验

  • 输出的网页 image

  • PSD 设计稿 image

使用

PSD 准备

  • 模式 RGB 颜色、8 位通道;
  • 合并和栅格化实际的图层;
  • 隐藏不需要导出的图层。

安装

$ npm install h5psd [-g]

命令行

Usage:

    h5psd <input list> [options]

Options:

    -v, --version                Output h5psd version.
    -o, --output                 Output directory (default input directory).
    -s, --images                 Images directory (default "images").
    -l, --layer                  Export "<name>.layer" file (default false).
    -n, --name                   Enable the "name" attribute (default false).
    -t, --template               Page jdists template file.

License

MIT © zswang

More Repositories

1

jdists

A feature rich code block preprocessing tool.
JavaScript
317
star
2

csst

CSS Text Transformation
JavaScript
199
star
3

jdetects

Detect if DevTools is open
JavaScript
139
star
4

jfogs

JavaScript Obfuscator
JavaScript
89
star
5

jpacks

Binary data packing and unpacking.
JavaScript
56
star
6

examplejs

A tool for converting example code into test cases
JavaScript
44
star
7

icity

Get the tools for the city where your phone number is located
TypeScript
43
star
8

np2km

Analysis of NPM dependencies, and generate a file kityminder file
JavaScript
41
star
9

zswang.github.com

HTML
40
star
10

bigfont

A tool for to enlarge the font.
JavaScript
29
star
11

gallery.animate.css

Gallery of Animate CSS
CSS
22
star
12

jints

Big Integer
JavaScript
16
star
13

jhtmls

Unmarked front-end template
JavaScript
15
star
14

fis-optimizer-tinify

JavaScript
11
star
15

snake

简易贪吃蛇
HTML
11
star
16

rtconfig

A real time updated configuration.
JavaScript
9
star
17

jrands

The random function of the constructor can specify random seeds
JavaScript
9
star
18

h5i18n

A mobile page of internationalization development framework
JavaScript
8
star
19

selector-helper

A CSS selector preview tool.
JavaScript
7
star
20

h5tracker

Mobile web page data collection framework
JavaScript
7
star
21

ace-engine

HTML visualization development
JavaScript
6
star
22

jcameras

Mouse behavior recording and playing
JavaScript
6
star
23

jphps

Unmarked PHP template
JavaScript
5
star
24

ziiya

聊天枝丫
JavaScript
4
star
25

fis3-parser-webpack

A parser plugin for fis3 to compile webpack file.
JavaScript
4
star
26

penjs

Mobile-side page small development framework.
JavaScript
4
star
27

light-map

Cordova 地图
Java
3
star
28

element-path

Path of element get and query.
JavaScript
3
star
29

snow-globe

snow globe
TypeScript
3
star
30

svgbackground

Some simple SVG background generation tools.
JavaScript
2
star
31

jfpss

JavaScript
2
star
32

jmaths

用于收集常用数学函数
JavaScript
2
star
33

bo2km

Analysis of Bower dependencies, and generate a file kityminder file
JavaScript
2
star
34

h5ajax

Ajax of Mobile
JavaScript
2
star
35

jsizes

锚点控制组件
JavaScript
2
star
36

jnodes

A tool view of template
JavaScript
2
star
37

proxy-fs

A simple proxy filesystem.
JavaScript
2
star
38

chessengine

棋类引擎
2
star
39

h5i18n-editor

The dictionary editor of h5i18n
JavaScript
2
star
40

jtasks

构建工具。怎么又是构建工具?挖这么大坑干啥?
2
star
41

mikecrm-api

mikecrm api
TypeScript
2
star
42

jpaths

一个简单绘图库,兼容 svg 和 vml,路径只支持其交集。
JavaScript
2
star
43

xqueue

Emitter at Redis queue
JavaScript
2
star
44

h5emitter

event emitter function
JavaScript
2
star
45

jfetchs

cache of fetch data
JavaScript
2
star
46

jvects

矢量计算
JavaScript
2
star
47

renrousousuo.com

人肉搜索网站
2
star
48

linenum

This tool will replace text "^linenum" with the line number.
JavaScript
1
star
49

light-flashlight

Cordova 手电筒插件
1
star
50

jmd5s

md5 函数封装
JavaScript
1
star
51

jfetchs-memory

jfetchs memory store
TypeScript
1
star
52

cellular

JavaScript
1
star
53

gulp-jdists

Code block processing with jdists - gulp plugin
JavaScript
1
star
54

jchecks

Checklist black box testing.
JavaScript
1
star
55

fis-parser-linenum

A parser plugin for fis3 to replace line number.
JavaScript
1
star
56

npdep

Automatic import NPM's main file to HTML
JavaScript
1
star
57

mockjs_jdists_demo

mockjs and jdists demo
HTML
1
star
58

gulp-examplejs

A tool for converting sample code into test cases
JavaScript
1
star
59

jsets

JavaScript
1
star
60

h5toast

Simple toast notifications of Mobile Web
JavaScript
1
star
61

business-mail

JavaScript
1
star
62

h5tap

Tap event trigger of mobile.
JavaScript
1
star
63

iplus

Timestamp based GUID
JavaScript
1
star
64

iholiday

Holiday schedule for holidays of China.
TypeScript
1
star
65

react-drawer

TypeScript
1
star
66

sensorsdata-api

sensorsdata API
JavaScript
1
star
67

file-analyzer

Automatically exported from code.google.com/p/file-analyzer
Pascal
1
star
68

jstrs

String functions
JavaScript
1
star
69

iorder

For the title sort of the article
JavaScript
1
star
70

jdists-loader

jdists loader module for webpack
JavaScript
1
star