巧妙缩小图像的大小和调色板
NoteShrinker的Python项目详细描述
noteshrinker
==
![github stars](https://img.shields.io/github/stars/ghandic/noteshrinker.svg?style=social&label=stars)
![docker build](https://img.shields.io/docker/automated/challisa/noteshrinker.svg)
![特拉维斯建设](https://travis-ci.org/ghandic/noteshrinker.svg?分支=主)
![包版本](https://img.shields.io/pypi/v/noteshrinker.svg)
![许可证](https://img.shields.io/github/license/ghandic/noteshrinker.svg)
compact*pdfs*[请参阅完整的writeup](https://mzucker.github.io/2016/09/20/noteshrink.html)
请注意,由于原始模块依赖于imagemagick,因此此包不会转换为pdf,这很容易自行实现。
示例
----
这些示例使用python模块中的默认设置。
|不收缩
::----------::-----:
**大小:1.4MB**![原始示例1](examples/input/us_tax_form_1937.jpg?raw=true“1937年美国纳税申报表原件”)**尺寸:516kb**![注:shunk示例1](examples/output/us_tax_form_1937.png?raw=true“noteshrunk us tax return form from 1937”)
**大小:73kb**![原始示例2](examples/input/winston_churchill_letter.jpg?raw=true“来自温斯顿·丘吉尔的原始信件”)**大小:51kb**![注:SHUNK示例2](examples/output/winston_churchill_letter.png?raw=true“Winston Churchhill的便笺缩略信”)
**大小:132kb**![原例3](examples/input/restraint-of-homestic-anims.jpg?raw=true“来自‘家畜约束’的原始页面”;**大小:109KB**![noteshunk example 3](examples/output/restraint-of-u-domestic-anims.png?家庭动物的例子/输出/限制?raw=true“noteshrunk page from‘restraint of domestic anims’”
安装了SciPy和Pil软件:**
`` python
pip安装Numpy SciPy枕头
```
`` python
`` python
pip安装NotesShrinker
```
<>
<>
/>`` bash
` `` bash
` ` `` bash
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `-w
```
**命令行**
``bash
note shrinker image1[image2…]
```
**集成到您的python脚本中**
``python
from noteshrinker import noteshrinker
**参数)
==
![github stars](https://img.shields.io/github/stars/ghandic/noteshrinker.svg?style=social&label=stars)
![docker build](https://img.shields.io/docker/automated/challisa/noteshrinker.svg)
![特拉维斯建设](https://travis-ci.org/ghandic/noteshrinker.svg?分支=主)
![包版本](https://img.shields.io/pypi/v/noteshrinker.svg)
![许可证](https://img.shields.io/github/license/ghandic/noteshrinker.svg)
compact*pdfs*[请参阅完整的writeup](https://mzucker.github.io/2016/09/20/noteshrink.html)
请注意,由于原始模块依赖于imagemagick,因此此包不会转换为pdf,这很容易自行实现。
示例
----
这些示例使用python模块中的默认设置。
|不收缩
::----------::-----:
**大小:1.4MB**![原始示例1](examples/input/us_tax_form_1937.jpg?raw=true“1937年美国纳税申报表原件”)**尺寸:516kb**![注:shunk示例1](examples/output/us_tax_form_1937.png?raw=true“noteshrunk us tax return form from 1937”)
**大小:73kb**![原始示例2](examples/input/winston_churchill_letter.jpg?raw=true“来自温斯顿·丘吉尔的原始信件”)**大小:51kb**![注:SHUNK示例2](examples/output/winston_churchill_letter.png?raw=true“Winston Churchhill的便笺缩略信”)
**大小:132kb**![原例3](examples/input/restraint-of-homestic-anims.jpg?raw=true“来自‘家畜约束’的原始页面”;**大小:109KB**![noteshunk example 3](examples/output/restraint-of-u-domestic-anims.png?家庭动物的例子/输出/限制?raw=true“noteshrunk page from‘restraint of domestic anims’”
安装了SciPy和Pil软件:**
`` python
pip安装Numpy SciPy枕头
```
`` python
`` python
pip安装NotesShrinker
```
<>
<>
/>`` bash
` `` bash
` ` `` bash
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `-w
```
**命令行**
``bash
note shrinker image1[image2…]
```
**集成到您的python脚本中**
``python
from noteshrinker import noteshrinker
**参数)