LINE贴图与APNG

找贴图!找会动的贴图!找可爱的贴图!

又心血来潮开始找贴图了,过年的时候用的WhatSticker,这次又上去逛了一圈,感觉没有什么有新意的贴图。想了想,还是到LINE上去找找吧。

上次去LINE上找贴图感觉已经是好久之前的事情了,只模糊的记得要先提取一个贴图包的ID,然后拼出一个下载网址,然后就可以下到贴图了。这次Google了一下如何提取LINE贴图,感觉相关的教程比之前难检索了……

不过,搜了一晚上,总算是有点成果,在此全部搬运到这儿,以备不时之需。
(其实全是根据参考链接四里找到的)

LINE 动态贴图下载(GIF)

LINE贴图包下载还是很简单的,而且方法很稳定,好像很久没有变过了:

Download the sticker files

For regular sticker type, visit:
dl.stickershop.line.naver.jp/products/0/0/1/[ID]/iphone/stickers@2x.zip

For other sticker types, visit:
dl.stickershop.line.naver.jp/products/0/0/1/[ID]/iphone/stickerpack@2x.zip

If the links above are not working, you can also try to download them through the secure site here:

For regular sticker type:
https://stickershop.line-scdn.net/stickershop/v1/product/[ID]/iphone/stickers@2x.zip

For other sticker types:
https://stickershop.line-scdn.net/stickershop/v1/product/[ID]/iphone/stickerpack@2x.zip

一般来说,上面前两个链接救OK了,[ID]的获取方法参见参考链接一。

懒人福音:如果实在懒得研究怎么拼链接,可以直接试一下参考链接二的Chrome插件。

Find the sticker image files

You can find the image file of the sticker in the following folders:

  • Regular sticker: . (root)
  • Animated sticker, either with sound or not, iPhone version: “animation@2x”
  • Animated sticker, either with sound or not, Android version: “animation”
  • Pop up sticker, either with sound or not: “popup”

The file format that LINE used is APNG

最后一步,把下载得到的APNG文件转换为喜闻乐见的GIF。

通用方法

使用ImageMagick(ImageMagick 7或更新的版本)將APNG轉換爲GIF。

需要注意的是,指定源文件的時候需要說明源文件爲APNG圖片, e.g. apng:animate.png

1
magick APNG:image.png image.gif

Windows Platform

参考链接三的Repository下载到本地,将待转换文件复制到Repository文件夹中,执行BAT脚本。

GIF GET!

参考资料:

  1. Tutorial: How to download LINE sticker files to computer
  2. LINE 贴图打包
  3. miyouzi - apng2gif
  4. Line动态表情包apng转换为gif|line sticker apng to gif
  5. ImageMagick 7, now supports APNG since version 7.0.10-31