phpで 画像出力

<?php
header('Content-type: image/jpeg');
readfile('サーバ側の画像のある場所');
?>
はい、たったこれだけです。

ネタ元