强化图像的工具。
python-intensifies的Python项目详细描述
python增强
说明
增强图像的命令行工具。也就是说,它会打开一个文件并使劲摇晃它。主要用于模因。
要求
差不多是Python3.5+,枕头5.4.1。setup.py应该为您安装它。
安装
$ pip install python-intensifies
用法:
$ intensify -h
usage: intensify [-h] [-i IMAGE] [-o OUTPUT] [-s MAX_LENGTH] [-w WIGGLE_LEVEL]
[-f FPS]
optional arguments:
-h, --help show this help message and exit
-i IMAGE, --image IMAGE
The image to be INTENSIFIED. Defaults to setup.py
-o OUTPUT, --output OUTPUT
The filename to which the output should be saved. Must
end in ".gif"
-s MAX_LENGTH, --max_length MAX_LENGTH
The output will have dimensions no bigger than this
value.
-w WIGGLE_LEVEL, --wiggle_level WIGGLE_LEVEL
Amount of shaking on a scale of 0 to 1.
-f FPS, --fps FPS Frame rate of the output in frames per second. Max is
50.
$ intensify -i python.jpg -w .25 -o danger_noodle.gif
更改日志
0.0.3 - 0.0.4:
* If you're reading this, you can now install this via pypi.
0.0.2 - 0.0.3:
* Re-added the FPS parameter I forgot to document removing. Initially it was because Pillow is limited in framerates it can animate, but turns out it's very useful for reducing filesize of emojis.
0.0.1 - 0.0.2:
* Transparency AND animation is now supported for .gif files used as input.
* MoviePy, (and by extension, imageio, tqdm, and a copy of ffmpeg) are no longer dependencies.
* No need for a folder as a package, setup.py just installs a single module now.
注释
* Transparency for .png files used as input is not supported.