clipstudio.js
一个JavaScript库,用于在浏览器和Node.js上使用CLIP STUDIO .clip文件
安装
$ yarn add clipstudio # or npm install clipstudio
用法
浏览器
import { ClipStudio } from 'clipstudio'
const inputFile = event => {
const [ file ] = event . target . files
const clip = await ClipStudio . load ( file )
const thumbnail = clip . getThumbnail ( ) // Blob
const layers = clip . getLayers ( ) // Layer[]
}
Node.js