1. pull all LINE stickers from you phone
adb pull /storage/sdcard0/Android/data/jp.naver.line.android/stickers/ .
2. find your purchased sticker pack (you can look at the "preview" file)
for example, the sticker pack of Puella Magi Madoka Magica is # 1101
Note, you also can find stickers sent by your friend.
3. convert your the files (from PNG) to the WebP format
I'm too lazy so I wrote a script to do the following stuffs:
mkdir madoka
cp ../stickers/1101/* madoka/
cd chocola/
rm *_key preview thumbnail *.tmp
for i in *; do cwebp $i -o $i.webp ; done
for i in `ls | grep -v webp`; do mv $i $i.png; done
cd ..
4. put them in your phone, done!
Test:
The first one is the file in PNG, the second one is in WebP.
Automatic script: https://gist.github.com/xatier/971e1abe16f3bcbc51d9
Reference
https://telegram.org/blog/stickers
https://developers.google.com/speed/webp/docs/using
No comments:
Post a Comment