still and moving images

i've been seeing a couple of photos like this and i've been wondering how to achieve this animation, i've looking through the memories(maybe not thoroughly enough?)
ex: 1
2

i think they might have been made using different techniques i'm not sure though. any help would be greatly appreciated :]]