$im = imagecreatefrompng(""'.$type.'".png"); How should that be? sorry to be a pain my head isn't screwed on today! Thanks