<?php header('Content-type: image/jpeg'); $i = imagecreatefromjpeg('carl.jpg'); imagefilter($i, IMG_FILTER_NEGATE); imagejpeg($i);?>