@adamholtzman/image-compress 中文文档教程

发布于 4年前 浏览 6 更新于 3年前

image-compress

一个小的 npm 包,用于压缩和优化命令行目录和子目录中的图像文件。

Usage

在您的终端中,cd 进入包含您希望压缩的图像的目录/项目,然后运行 ​​npx @adamholtzman/image-compress

这将创建一个名为 compressed 的新目录,其中包含所有与源目录格式相同的压缩图像。

或者,如果您不想使用 npx,则可以使用 npm i -g @adamholtzman/image-compress 进行全局安装

从本质上讲,这是一个执行 compress-images。 如果您觉得有用,请考虑向该项目捐款。

Bugs

github https://github.com/aholtzman/image-compress/issues

Licence

MIT 许可证

版权所有 (c) 2020 ADAM HOLTZMAN

特此免费授予获得本软件和相关文档文件(“软件”)副本的任何人不受限制地处理本软件的权限,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售软件的副本,并允许获得软件的人这样做,但须遵守以下条件:

上述版权声明和本许可声明应包含在所有软件的副本或重要部分。

本软件“按原样”提供,不提供任何明示或暗示的保证,包括但不限于对适销性、特定用途的适用性和非侵权的保证。 在任何情况下,作者或版权持有人均不对任何索赔、损害或其他责任负责,无论是在合同诉讼、侵权行为还是其他方面,由软件或软件的使用或其他交易引起、由软件引起或与之相关软件。

image-compress

A little npm package to compress and optimize image files in a directory and sub directories for the command line.

Usage

In your terminal, cd into the directory/project with images you wish to compress then run npx @adamholtzman/image-compress

This will create a new directory named compressed with all of the compressed images in the same directory format as the source.

Alternatively you can globally install with npm i -g @adamholtzman/image-compress if you prefer not to use npx

In essence, this is a function that executes compress-images from the command line. Please consider donating to that project if you find this useful.

Bugs

github https://github.com/aholtzman/image-compress/issues

Licence

MIT License

Copyright (c) 2020 ADAM HOLTZMAN

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文