Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

hcspritecuter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hcspritecuter

hcSpriteCuter =============

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

hcSpriteCuter

a nodejs cut sprite images into single image

在学习和研究别人程序的过程中,我们需要从一个由多张小图合并而成的雪碧图中抠出其中一张或者几张图片,传统的做法是用ps直接进行抠图。 hcSpriteCuter是一个用nodejs写的一个雪碧图拆分工具。

demo

假设我有一张图片:

运行:

node hcSpriteCuter.js copte.png

则程序会在export目录下将copte.png切成一下多个图片:

FAQs

Package last updated on 14 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts