Reworked argument parsing, filter application, added parsing config files.
This commit is contained in:
39
config/config.json
Normal file
39
config/config.json
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"default": {
|
||||
"inputFile": "res/img.png",
|
||||
"outputFile": "res/img_done.png",
|
||||
"dpi": 500,
|
||||
"flip": false,
|
||||
"width": 0,
|
||||
"filters": [
|
||||
"gaussian",
|
||||
"erode",
|
||||
"blur"
|
||||
]
|
||||
},
|
||||
|
||||
"test1" : {
|
||||
"inputFile" : "res/test_fp.png",
|
||||
"outputFile" : "res/test_fp_cpy.png",
|
||||
"dpi" : 500,
|
||||
"flip" : true,
|
||||
"width" : 0,
|
||||
"filters": [
|
||||
"gaussian" ,
|
||||
"erode",
|
||||
"blur"
|
||||
]
|
||||
},
|
||||
|
||||
"test2": {
|
||||
"inputFile": "res/test_fp.png",
|
||||
"outputFile": "res/test_fp_cpy.png",
|
||||
"dpi": 1000,
|
||||
"flip": false,
|
||||
"width": 500,
|
||||
"filters": [
|
||||
"gaussian",
|
||||
"dilate"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user