If you get JSON data from Instagram's API you will find a media_preview
key, the value of which is some Base64-encoded data. It really looks like some very small preview binary data. Maybe compressed.
Take this post for example. It's just a black square and its preview is very small. Its JSON contains
data['graphql']['media_preview'] = "ACoq5miiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAP/Z"
I could not reverse the code and find out how Instagram uses this data. What should I do to create a preview from this data?
I am not good at understanding minified js, but I think it draws blurred preview for "sensitive content" on a dynamically created canvas.
Here is a post with some sensitive content (medical) as an example
Update: I've noticed that b64decoded data always starts with 00 2A 2A
and ends with FF D9
.