iOS 的资源配置文件分别是 TuSDK.bundle/others/lsq_tusdk_configs.json
{
/* 滤镜组 */
"filterGroups": [
{
/* 滤镜组文件 */
"file": "lsq_filter_Leica_1.gfilter",
/* 滤镜组名字 */
"name": "lsq_filter_group_Leica",
/* 滤镜组默认滤镜 */
"default_filter_id": 12,
/* 滤镜名称背景色 */
"color": "#E74C3C",
/* 滤镜 */
"filters": [
{
/* 滤镜 id */
"id": 11,
/* 滤镜名字 */
"name": "lsq_filter_Brilliant",
/* 滤镜缩略图 */
"thumb": "lsq_filter_thumb_Brilliant",
/* 滤镜名称背景色 */
"color": "#E74C3C",
/* 滤镜参数 */
"args": {
/* 混合 */
"mixied": 0.5
}
},
{ "id": 12, "name": "lsq_filter_Leica" },
{ "id": 13, "name": "lsq_filter_Gloss" },
{ "id": 14, "name": "lsq_filter_Harmony" },
{ "id": 15, "name": "lsq_filter_Noir" }
]
},
{
"file": "lsq_filter_Beauty_6.gfilter",
"default_filter_id": 65,
"filters": [
{ "id": 61, "name": "lsq_filter_SkinNature" },
{ "id": 62, "name": "lsq_filter_SkinPink" },
{ "id": 63, "name": "lsq_filter_SkinJelly" },
{ "id": 64, "name": "lsq_filter_SkinNoir" },
{ "id": 65, "name": "lsq_filter_SkinRuddy" },
{ "id": 66, "name": "lsq_filter_SkinPowder" },
{ "id": 67, "name": "lsq_filter_SkinSugar" }
]
}
]
}
240 * 240
的 JPG 放入工程,并更改 TuSDK.bundle/others/lsq_tusdk_configs.json
中相关的 thumb
字段。滤镜组中没有thumb
字段,请相应添加,并将字段中替换为需要的效果图。注意
thumb
字段,需要提前将按规格要求的图片拖入工程, jpg
和 png
格式的图片均可,按格式要求填写。{
/* 滤镜组 */
"filterGroups": [
{
/* 滤镜组文件 */
"file": "lsq_filter_Leica_1.gfilter",
/* 滤镜组名字 */
"name": "lsq_filter_group_Leica",
/* 滤镜组默认滤镜 */
"default_filter_id": 12,
/* 滤镜名称背景色 */
"color": "#E74C3C",
/* 滤镜 */
"filters": [
{
/* 滤镜 id */
"id": 11,
/* 滤镜名字 */
"name": "ls_filter_Brilliant",
/* !!!!!!!!!!!!!!!!!!!!!!!!! */
/* 滤镜缩略图 */
"thumb": "abc",
/* !!!!!!!!!!!!!!!!!!!!!!!!! */
/* 滤镜名称背景色 */
"color": "#E74C3C",
/* 滤镜参数 */
"args": {
/* 混合 */
"mixied": 0.5
}
},
{ "id": 12, "name": "lsq_filter_Leica" },
{ "id": 13, "name": "lsq_filter_Gloss" },
{ "id": 14, "name": "lsq_filter_Harmony" },
{ "id": 15, "name": "lsq_filter_Noir" }
]
},
]
}
©2019-2024 TUTUCLOUD. All Rights Reserved. 杭州元凡视觉智能科技有限公司 | 浙ICP备14040447号-1 | 浙公网安备33010602001649号