coreimage命令行工具

cifilter的Python项目详细描述


Author:Jonathan Wight <jwight@mac.com>
description:CoreImage filter tool

目标

cifilter是一个命令行工具,用于使用coreimage过滤图像。

安装

从源安装:

$ python setup.py install

使用pip:

$ pip install cifilter

使用setuptools

$ easy_install -U cifilter

用法

注意表单的大多数参数-inputxxxx根据所选的过滤器而变化。

$ cifilter –filter CIRippleTransition –help Usage: cifilter –filter CIRippleTransition [options]

Options:
--versionshow program’s version number and exit
-h, --helpHelp!
-i INPUT, --inputImage=INPUT
The input image (or - for stdin)
-o OUTPUT, --outputImage=OUTPUT
The output image (or - for stdout)
-f FILTER, --filter=FILTER
Name of the filter
--listfiltersList available CoreImage filters
--listcategories
List available CoreImage filter categories
--category=CATEGORY
Category used to filter listfilter results
--width=WIDTHDesired width of output image
--height=HEIGHT
Desired height of output image
--type=TYPEDesired UTI type of output image (e.g. public.png, public.jpg, etc)
-v, --verboseSet the log level to INFO
--loglevel=LOGLEVEL
set the log level, 0 = no log, 10+ = level of logging
--logfile=LOG_FILE
File to log messages to. If - or not provided then stdout is used
--openOpen the output image after processing
--inputTargetImage=VALUE
The target image for a transition.
--inputShadingImage=VALUE
An image that looks like a shaded sphere enclosed in a square image.
--inputCenter=VALUE
The x and y position to use as the center of the effect
--inputExtent=VALUE
A rectangle that defines the extent of the effect.
--inputTime=VALUE
The parametric time of the transition. This value drives the transition from start (at time 0) to end (at time 1).
--inputWidth=VALUE
The width of the ripple.
--inputScale=VALUE
A value that determines whether the ripple starts as a bulge (higher value) or a dimple (lower value).

示例

$ cifilter –help

$ cifilter –listcategories

$ cifilter –listfilters

$ cifilter –listfilters –category CICategoryGenerator

$ cifilter –filter CIStarShineGenerator –help

$ cifilter –filter CIEdges < test.jpg

$ cifilter –filter CIEdgeWork < input.png > output.png

$ cifilter –filter CIEdgeWork –inputImage 1.png –output 2.png

$ cifilter –filter CISunbeamsGenerator –open

$ cifilter –filter CICheckerboardGenerator -o - | cifilter –filter CIEdgeWork -i - –open

$ cifilter –filter CICheckerboardGenerator –type public.jpeg –outputImage ~/Desktop/Checkerboard.jpg

$ cifilter –filter CIConstantColorGenerator –inputColor=1.0,1.0,1.0,1.0 –width 256 –height 256 –open

$ cifilter –filter CIConstantColorGenerator –inputColor=1.0,0.0,0.0,1.0 -o - | cifilter –filter CIHueAdjust –inputAngle=180 –open

错误

将所有错误报告发送到jwight@mac.com

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

推荐PyPI第三方库


热门话题
当您有许多具有不同密钥值的位置时,java Enterprise是加密环境变量的正确方法   java如何使用视图保持器模式制作自定义适配器?   java如何迭代Camel体中的嵌套列表?   序列化用base 64进行Java序列化   java打开文件的最佳方式(并确保选择了文件)   java marvin图像色差插件错误   java如何在eclipse中添加属性文件文件夹   比较java。util。日历日期到java。util。日期   java无法在下一个类(活动)中获取哈希表   java如何将这段代码转换为循环?   java查找通过REST失败   java getIntent返回null   在Java中,如何通过外部集合从内部集合检索数据?   java单点登录以保护REST API和内部基于web的系统