Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eightfeet/getsketchimg
https://github.com/eightfeet/getsketchimg
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/eightfeet/getsketchimg
- Owner: eightfeet
- Created: 2018-10-23T13:48:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-10T23:34:43.000Z (about 1 year ago)
- Last Synced: 2024-04-16T01:08:25.796Z (7 months ago)
- Language: JavaScript
- Size: 356 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 这里处理图片
1. npm run rename md70
运行renmeImg脚本,重命名图片,将下载的图片放置到images下建立文件目录运行npm run rename 【文件夹名】,脚本将文件夹下面的图片文件重命名并拷贝到到renameimages目录下
2. npm run 2json md254
转化为数据格式,注意手动定义相关参数```javascript
[
'Clothes',
// 'Body',
'Male',
'Female',
// 'Header',
'HandsFeet',
// 'Half',
// 'Group',
// 'Still',
// 'Video',
// 'Structure'
]
```
3. 将json转化为项目数据,
1. 将图片上传到对应的`{"from":"md3"}`中,root/small/下放置缩略图;root/下放置原图
2. 将json数据放置在sketch/public/data,cd到sketch/public下运行`node nodebuild.js`即可将数据同步到项目中,
3. sketch中运行 npm run demo 发布项目