Where were you standing when you took this picture?
ーWhere did you take this picture from?
「この写真はどこから撮ったの?」
take this picture で「この写真を撮る」
from を使うことで「どこから」という意味になります。
もっと確実に聞きたいなら、次のように言えます。
ーWhere were you standing when you took this picture?
「この写真を撮った時、あなたはどこに立っていましたか?」
Where were you standing ...? と言うことで、写真を撮影した詳細な場所を聞くことができます。
ご参考まで!