... | ... | @@ -8,7 +8,11 @@ When something goes wrong with the interpretation of the json or plist data when |
|
|
|
|
|
### Getting a list of the CoreImage filters
|
|
|
|
|
|
To get a list of all the available CoreImage filters:
|
|
|
To get a list of all the available CoreImage filters in ruby:
|
|
|
|
|
|
MIMeta.get_listoffilters(category: :CICategoryBlur)
|
|
|
|
|
|
To get a list of all the available CoreImage filters on the command line:
|
|
|
|
|
|
smig getproperty -type imagefilterchain -property imagefilters
|
|
|
|
... | ... | @@ -16,11 +20,15 @@ To get a list of all the available CoreImage filters: |
|
|
|
|
|
To be able to create a property list dictionary or json object that you use to setup a core image filter in a filter chain, you need to know what the list of keys are for each filter are and for each key what the range of allowed values is that can be assigned to the filter. To get the filter description you can get the "imagefilterattribute" property from the "imagefilterchain" type. The information can be returned in one of 3 ways. Either as a json string (see the example below) or saved to a json or a plist file (-jsonfile, -plistfile). If saving to a file then after the (-jsonfile, -plistfile) option you need to provide a file path.
|
|
|
|
|
|
The following shows you how to get the properties about the CIDroste filter as a json string.
|
|
|
To get the CIDroste filter attributes in ruby:
|
|
|
|
|
|
MIMeta.get_filterattributes(filtername: :CIDroste)
|
|
|
|
|
|
To get the CIDroste filter attributes on the command line:
|
|
|
|
|
|
smig getproperty -type imagefilterchain -property imagefilterattributes -filtername CIDroste -jsonstring
|
|
|
|
|
|
This returns the compact form of the json string. To quickly view a human friendly version, copy the result and paste it into either: [JSONLint](http://jsonlint.com) or [JSON Editor online](http://jsoneditoronline.org).
|
|
|
Both these methods return the compact form of the json string. To view a human friendly version, copy the result and paste it into either: [JSONLint](http://jsonlint.com) or [JSON Editor online](http://jsoneditoronline.org).
|
|
|
|
|
|
### Setting up the properties for a filter
|
|
|
|
... | ... | |