数据库中保存了图片的基础路径,类似于 a6/e8/1_prsn_ZdFfp.jpg?r=1597241889
不同分类,不同尺寸的图片有不同的前缀,前缀+尺寸+图片基础路径拼接成了最终的 HTTP URL
人物的图片前缀为 https://lain.bgm.tv/pic/crt/
有l
,m
,s
和g
四种尺寸,一共有四种尺寸的图片
{
"images": {
"large": "https://lain.bgm.tv/pic/crt/l/a6/e8/1_prsn_ZdFfp.jpg?r=1597241889",
"medium": "https://lain.bgm.tv/pic/crt/m/a6/e8/1_prsn_ZdFfp.jpg?r=1597241889",
"small": "https://lain.bgm.tv/pic/crt/s/a6/e8/1_prsn_ZdFfp.jpg?r=1597241889",
"grid": "https://lain.bgm.tv/pic/crt/g/a6/e8/1_prsn_ZdFfp.jpg?r=1597241889"
}
}
条目的图片前缀为 https://lain.bgm.tv/pic/cover/
, 有 l
,m
,s
,c
和g
五种尺寸。
{
"images": {
"large": "https://lain.bgm.tv/pic/cover/l/a8/7f/4_cMMK5.jpg",
"common": "https://lain.bgm.tv/pic/cover/c/a8/7f/4_cMMK5.jpg",
"medium": "https://lain.bgm.tv/pic/cover/m/a8/7f/4_cMMK5.jpg",
"small": "https://lain.bgm.tv/pic/cover/s/a8/7f/4_cMMK5.jpg",
"grid": "https://lain.bgm.tv/pic/cover/g/a8/7f/4_cMMK5.jpg"
}
}