创建渐进式jpeg图片
<?php
// Create an image instance
$im = imagecreatefromjpeg('test.jpg');
// Enable interlancing
imageinterlace($im, true);
// Save the interlaced image
imagegif($im, './progressive.jpg');
imagedestroy($im);
?>
http://blog.jobbole.com/44038/