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

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视图   java创建SQL插入语句到CSV文件   java效率检查:Opengl动画代码   在clojure中处理Java可选<T>   java理解camel中的输入/输出交换模式行为   对于使用jpackage构建的应用程序,java LSOpenURLsWithRole()失败,错误为10810   多线程Java同步:多重倒计时闩锁   java哪个类应该做这项工作?   java在运行时出现问题。getRuntime()。执行官   java我们不能在GAE中使用集合或集合作为返回类型吗?   amazon web服务返回类型与RequestHandler<Object,String>不兼容。JAVA中的HandlerRequest(对象、上下文)   如何在Java中使用ExecutorService设置任务的超时时间