巧妙缩小图像的大小和调色板

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

**参数)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Tyrus服务器端点@OnMessage方法未触发   java如何为列表项动态设置boder颜色?   导致错误的java ManyToOne关系无法解析表的绑定   java Jenkins:Gerrit触发器问题的设置   java Mock使用Mockito和PowerMock获取HttpServletRequest和Principal的静态方法   java未找到适合jdbc的驱动程序:derby://localhost:1527/prosto   创建Java对话框的用户界面   java JUnit Hamcrest断言   java中的二元和多元统计   java静态方法重新定义规则   java创建唯一的增量id并将其添加到集合中   C/C++/Java中的运算符   java需要创建一个带有自定义比较器的二进制搜索树,但似乎无法让它工作   在java中交换字符串中的字符组?   java Unnable将我的SpringBoot API连接到MYSQL数据库