is there any way to generate the json structure from the images automatically ?
I am not sure what is the question. Please elaborate.
Hey @developerpistachio,
Currently there is no way to generate the JSON structure AFAIK. I don't think that anyone is working on such a tool. If you find a tool or create one, feel free to post the link here - maybe that could be added to the docs then.
I also thought about such a tool, but sadly I don't have time for that at the moment.
Not that I'm aware of... The JSON file in the sticker-master is quite user friendly though a bit time consuming.
You can use either Android Studio or this to help debug your JSON file once you modify it.
Hey @developerpistachio,
Currently there is no way to generate the JSON structure AFAIK. I don't think that anyone is working on such a tool. If you find a tool or create one, feel free to post the link here - maybe that could be added to the docs then.
I also thought about such a tool, but sadly I don't have time for that at the moment.
I have created one file that I used to create JSON (for one pack) from files. I will post online soon so it will be helpful to all developers.
@developerpistachio @MarvinJWendt
I have created script that will give you JSON of selected files.
Convert Image names to JSON Array (WAStickerApp)
That will allows you to:
Format:
[
{
"image_file":"1.webp",
"emojis":[
"โ",
"๐"
]
},
{
"image_file":"2.webp",
"emojis":[
"๐",
"๐"
]
},
{
"image_file":"3.webp",
"emojis":[
"โ",
"๐"
]
}
]
I will try to add more functionality like developer can input publisher name, email, Android/iOS link etc...
Created Repository WAStickerApp-JSON-Generator on GitHub if anyone wants to contribute <3
Hope it will helps. Thank you.
@developerpistachio @MarvinJWendt
I have added more functionality as below.
It will give full pack array in JSON.
Please check and do let me know If any suggestions.
Convert Image names to JSON Array (WAStickerApp)
Thanks.
Hello @MarvinJWendt,
If you think that my link is helpful to other developers, you can put it in docs.
Thanks.
Hey, @pratikbutani,
I already considered that, but I don't have much time at the moment. If you want, I can take a closer look over the weekend ๐
But your tool looks good as far as I can tell now ๐
I have some Ideas to improve it, I'll send them to you as soon as I have time again :)
Sadly we could not implement the tool from @pratikbutani due to a WhatsApp regulation. There aren't any updates anymore, so I guess this issue can be closed. If any further questions may come up, feel free to drop a comment and I will reopen the issue :)
Most helpful comment
@developerpistachio @MarvinJWendt
I have created script that will give you JSON of selected files.
Convert Image names to JSON Array (WAStickerApp)
That will allows you to:
Format:
I will try to add more functionality like developer can input publisher name, email, Android/iOS link etc...
Created Repository WAStickerApp-JSON-Generator on GitHub if anyone wants to contribute <3
Hope it will helps. Thank you.