Generate a thumbnail using PHP.